Tangling a codeblock inside a codeblock. Ending with: #+end_src #+end_src... reddit / emacs ---------------------------------------------------------------------- kolerezooi · 2022-06-04 14:57 I want to tangle a codeblock inside a codeblock and include #+end\_src inside. This will not work in org-mode since it will be recognized as the end of the code block. #+begin_src :tangle snippets/org-mode/PythonBlock # -*- mode: snippet -*- # name: PythonBlock # key:

You must insert a comma right before lines starting with either `*`, `,*`, `#+` or `,#+`. ---------------------------------------------------------------------- dpoggio · 2022-06-06 02:18 Start the empty block, then press `C-c '` to edit, edit whatever you need, then press the same to end editing and everything will be automatically escaped, including the inner block. As simple as that.