I am taking notes on a course in org-mode. I am using HTML source-blocks to write down examples of html code. This serves me because I have text and code in one file and it will be easier to export it to a blog for example.
#+begin_src html
#some html code
#+end_src
However, sometimes I want to test the code in a source block and would want to export it to a separate html file. Any tipps on how to achieve this quickly? Exporting via C-c C-e h o
always exports the whole buffer or the subtree. But I want to export only the code in the source block.
Any tipps on how to do this?
Tangling
in the Org mode manual: doC-h i g (org)Extracting Source Code RET
.