So after some further testing, and sadly not too much response in this thread, I found that using Plaintext for Obsidian, is doing the trick for now. I’m missing a proper syntax highlighting directly from the plugin, but I’ve commented on a feature request regarding that, so hopefully it’ll come.
In the meantime, I found a solution using Templater and Buttons, see my own thread on Raw embed of javascript into a code block, to get syntax highlighting of any given script.
The main downside to this solution, is two-folded:
- In order to introduce new javascript files, I need to create the javascript files outside of Obsidian (or at least change the extension from
.md
to.js
) - My syntax highlight is not automatic, so after changes, I need to hit a button again.