4 ms·
#+BEGIN_SRC sh #!/bin/sh echo "foobar" #+END_SRC That also works in org-mode, and then you get syntax highlighting for the language etc. It can even ope
by etu 8y ago
#+BEGIN_SRC sh
#!/bin/sh
echo "foobar"
#+END_SRC
That also works in org-mode, and then you get syntax highlighting for the language etc. It can even open that block to edit in a separate buffer with the right major mode loaded for that language.
- xemdetia 8y agoThe command is org-edit-special bound to C-c ' (by default I think). I use this to dump example blocks which I often use to catch terminal output as well as source code editing. Having structured outputs from test/investigation/exploring that you can rearrange and export to use as documentation for the next time/training costs so little time that I get upset when I can't do it.