From mboxrd@z Thu Jan 1 00:00:00 1970 From: Abigaile Johannesburg Subject: How to escape # character in #+begin_src bash block for html export? Date: Thu, 22 Mar 2018 17:18:18 +0100 (CET) Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_170719_503919411.1521735498326" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ez2v2-0007bi-Fo for emacs-orgmode@gnu.org; Thu, 22 Mar 2018 12:18:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ez2uz-0002RZ-BX for emacs-orgmode@gnu.org; Thu, 22 Mar 2018 12:18:24 -0400 Received: from w1.tutanota.de ([81.3.6.162]:43348) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ez2uz-0002Mj-0X for emacs-orgmode@gnu.org; Thu, 22 Mar 2018 12:18:21 -0400 Received: from w1.tutanota.de (unknown [192.168.1.162]) by w1.tutanota.de (Postfix) with ESMTP id 540ECFB6503 for ; Thu, 22 Mar 2018 16:18:18 +0000 (UTC) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org ------=_Part_170719_503919411.1521735498326 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Dear community, I have a minor question about how to escape '#' character in #+begin_src bash block. For example, when I export the source code block for bash, I can use #+begin_src bash $ #+end_src But if I want to use # for indicating commands for root or privileged user, if I use #+begin_src bash # #+end_src then the commands after '#' will be in italics, i.e., they are treated as comments in html export. How do I solve this problem? Thanks in advance. Abi ------=_Part_170719_503919411.1521735498326 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Dear community,

I have a minor question about how to escape '#' character in #+begin_src bash block. For example, when I export the source code block for bash, I can use

#+begin_src bash
$<some bash command for normal user>
#+end_src

But if I want to use # for indicating commands for root or privileged user, if I use

#+begin_src bash
#<some bash command for root user>
#+end_src

then the commands after '#' will be in italics, i.e., they are treated as comments in html export.

How do I solve this problem?

Thanks in advance.

Abi
------=_Part_170719_503919411.1521735498326--