Hi everyone,
What I’m trying to do
I’ve been using Obsidian to save some coding notes written in ABAP language. In Edit and Live Preview mode there is no syntax highlighting and at first I thought that ABAP syntax was not supported, but after switching to reading mode the highlighting worked perfectly. After some debugging I saw that the Prism.js included ABAP language and that is why it is working fine in reading view.
I see there are lot’s of topics to the same problem, except they are about other languages.
After looking deeply into the coding I’ve seen that lots of languages are supposed to work, because they were included in Prismjs. ABAP is not an exception and is there too.
I wanted to ask for ideas how to make it work, like if writing a plugin would help.
UPD
I looked futher into the coding and I see that obsidian adjustes the html code depending on the view mode.
This is how the code looks in reading mode. Each span has a class.
This is how it looks in edit/preview mode.
It looks like CodeMirror rewrites the classes…
It may be also because ABAP is included in Prismjs, but is not present in CodeMirror meta.min.js file, but that is just a guess.
Thanks in advance!