0

Syntax highlighting doesn't work for source blocks that are nested inside special blocks:

#+BEGIN_test
#+begin_src js
return 14
#+end_src

#+RESULTS:
: 14
#+END_test

#+begin_src js
return 14
#+end_src

#+RESULTS:
: 14

enter image description here

Above the cursor, I have a source block inside a special whose syntax is not highlighted. The same block below the cursor is highlighted correctly.

Is there a way to get the syntax highlighting inside nested source blocks?

I found an answer on how syntax highlighting works in EMACS. It is fine with me if there is a way to manually do this process to get syntax highlighting inside nested source blocks.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.