emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Abigaile Johannesburg <abij@tuta.io>
To: emacs-orgmode@gnu.org
Subject: How to escape # character in #+begin_src bash block for html export?
Date: Thu, 22 Mar 2018 17:18:18 +0100 (CET)	[thread overview]
Message-ID: <L8DU1LR--3-0@tuta.io> (raw)

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 785 bytes --]

             reply	other threads:[~2018-03-22 16:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-22 16:18 Abigaile Johannesburg [this message]
2018-03-25  8:39 ` How to escape # character in #+begin_src bash block for html export? Michael Welle
2018-03-25 22:10   ` Nick Dokos
2018-03-26  9:32     ` Michael Welle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=L8DU1LR--3-0@tuta.io \
    --to=abij@tuta.io \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).