Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Escaping org-mode example block inside of an example block

Tags:

org-mode

If I am writing about emacs org-mode in an org-mode document, how do I properly escape examples. e.g.

#+BEGIN_EXAMPLE 
#+BEGIN_EXAMPLE 
* This is a heading
#+END_EXAMPLE
#+END_EXAMPLE

should show

#+BEGIN_EXAMPLE  
* This is a heading
#+END_EXAMPLE

but I need to escape the #+END_EXAMPLE somehow. I'm not finding it in the manual.

Thanks!

like image 630
Kurt Schwehr Avatar asked Sep 15 '11 12:09

Kurt Schwehr


Video Answer


1 Answers

Hi think you should use #begin_src org, since you want to write Org-Mode snippets.

#+begin_src org
  ,#+BEGIN_EXAMPLE  
  ,* This is a heading
  ,#+END_EXAMPLE
#+end_src

You can easily edit those snippets with M-x `org-edit-special' RET or C-c '.

like image 58
Guillaume Papin Avatar answered Oct 07 '22 14:10

Guillaume Papin