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 plugin is the perfect solution https://github.com/deathau/cm-editor-syntax-highlight-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 for this
+1 Please add this function!
+1
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
+1 it is laughable that this is not supported
+1 for that feature
@death.au I might suggesting looking into how this markdown editor functions: GitHub - writewithocto/ink: A plain-text javascript markdown editor library that renders formatting live and in-place without the need for a preview pane. Built on CodeMirror 6. Powers https://octo.app.
It performs formatting of the markdown itself, which supports syntax highlighting in the editor.