When adding source blocks in a
org-mode document (usually with the shortcut <s TAB), it usually works fine, but specifically with
web-mode, if I edit any snippet with the special editor (C-c-'), it also works fine, but once I close
emacs and reopen it again, the syntax highlight of "embedded" web-mode source snippets doesn't work correctly.
It seems that just after editing the source code with the special editor, the syntax highlight is correctly copied to the org file, but once I re-edit directly the snippet or I restart
In my case, this piece of code:
only has highlighted
getElementById. Everything else is just white (even
root has also lost his highlighting).
Of course, I have
Is there any solution to this?
PD: If it is worth to note, I'm using the
purcell's emacs configuration. The only personal configuration added by me that has something to do with
But I don't think my configuration has something to do with the problem because the special editor works perfectly as I said.
PD2: web-mode's auto-indentation or other features doesn't work either unless I open the special editor, but that's fine to me. I only need the highlighting works as expected.