Since the editor window uses CodeMirror, it seems like we should be able to add syntax highlighting in code blocks relatively easily (all things considered).
Is that on the roadmap? It is very important to me to be able to use syntax highlighting for different languages in my notes.
I support this feature request. It is quite cumbersome to write code blocks without syntax highlighting. This kind of rendering is great:
At the moment syntax highlighting is only supported in the preview.
Code Mirror is syntax highlighting the markdown in the editor. I’m not sure how difficult it would be to configure multiple language syntax highlighting in the editor…
I really want this as well.
+1 to this request. Without syntax highlighting it is difficult to use obsidian for writing code of any kind. Instead you have to work elsewhere and then paste into Obsidian when done
+1 to this too. I use Obsidian in editor mode 90% of the time, therefore having syntax highlighting for code blocks would be very handy.
+1 I just started using this instead of VS Code for notes. Love it so far but was surprised when code highlighting wasn’t active.
+1 Hopefully this will be possible in the near feature, for programmers like myself, the syntax highlight for the editor view part is essential.
This is one of the the reason why Roam is still top on my list, instead of obsidian
I think this shouldn’t be a third-party plugin. It should be a built-in feature. Any reasons it’s not added?
+1. Would be a great addition to Obsidian
Thanks for the plugin. Is there a way to make it work for R code syntax highlighting support?
Would love to see syntax highlighting available by default
+1 Please add this function!
I’m also using this! It’s a bit disconcerting though that the preview syntax highlighting does not match the editor’s. As for me, I prefer the plugin’s highlighting to the native one. Are you able to sync them?
No I don’t think that is possible. Preview and edit mode uses completely different libraries for the highlighting. Source