deathau / cm-editor-syntax-highlight-obsidian

A plugin for [Obsidian](https://obsidian.md) which allows syntax highlighting for code blocks in the editor.
486 stars 37 forks source link

Shell and Bash languages with Obsidian v1.0.0? #53

Open dslusser opened 1 year ago

dslusser commented 1 year ago

Hello,

This plugin has worked perfectly for me up until the newly released Obsidian v1.0.0. On Obsidian v1.0.0, the plugin doesn't seem to highlight shell and bash languages in the same way it used to; some text is highlighted, but most is not (it seems that python, javascript, css, and others do still work properly). Is anyone else experiencing the same behavior? Maybe it's just me and the syntax has changed for declaring these languages and I'm making the mistake?

SHU-red commented 1 year ago

Exactly the same for me Screenshot_20221018_210558

Im experiencing the same And also on

dslusser commented 1 year ago

The more that I've explored this, I'm now wondering if the plugin was even working for the past few months. I'm wondering if Obsidian integrated something similar into the app at some point, it broke/overwrote this plugin, and I didn't even realize that they did so. In v1.0.0 after quite a bit of exploration, I realized that I can use code snippets with css classes to stylize the built in codemirror syntax highlighting. It's not perfect, but it is just about the same as it was previously and at least gets me close enough to stop obsessing over it now.

cityvigil commented 1 year ago

I also encountered a similar problem with Obsidian v1.0.3. Then I installed the 「 Style Settings 」 and 「 CodeMirror Options 」 plugins and the problem was solved.

image