9

Org manual's solution for syntax highlighting of org-babel code blocks is to turn on native fontification with

(setq org-src-fontify-natively t)

works well for LaTeX code enclosed in blocks with

#+BEGIN_SRC latex

but not for blocks with:

#+BEGIN_LATEX

See sample image

Is there a way to make both types of LaTeX source blocks use the same LaTeX syntax highlighting scheme/setting?

Drew
  • 75,699
  • 9
  • 109
  • 225
Emacs User
  • 5,553
  • 18
  • 48

1 Answers1

1

works badge

In past I want did the same. So I found the answer by accident another day, funny.

I saw that you can do it with any org command prefixed with #+BEGIN by just writing a babel language name after it as we use with in #+BEGIN_SRC blocks. See yourself:

cancer

Manoel Vilela
  • 675
  • 3
  • 20