To export raw HTML, one can use:
#+begin_export html
some HTML
#+end_export
However, mhtml-mode
has some very desirable features, most notably, javascript syntax highlighting. So I use #+begin_export mhtml
, making for a smooth transition when editing the code using C-c '
. However, such a block does not export to HTML, so I find myself adding and removing the m
in mhtml
before and after export.
Is there a way for #+begin_export
to act as #+begin_export html
for the export, but as mhtml-mode
for the edits?