back

by newusertoday·4y ago·view on hn ↗
that was awesome. Do you know if it is possible to do syntax highligting in org mode between begin_src..end_src?
2 comments
Yes, definitely. For all languages, for which you have a major mode installed. I think you need to look for "fontify source block emacs org mode" or so. Basically org hands highlighting off to those major modes, if I understand it correctly.

Edit: Found it: https://orgmode.org/worg/org-contrib/babel/examples/fontify-...

In doom emacs for me it does it by default if I had the src language so #+BEGIN_SRC json #+END_SRC

Or #+BEGIN_SRC ruby #+END_SRC

And I have a pretty vanilla doom emacs config.

Pretty sure that it's OOTB for completely vanilla Emacs.
It is! Just specify the language after #+begin_src.