deathau / cm-editor-syntax-highlight-obsidian

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

Is there a way to change color schema, or manually adjust colors for specific languages? #26

Open MostHated opened 3 years ago

MostHated commented 3 years ago

Hey there, Fairly new to Obsidian, and just grabbed this plugin. I was wondering if there is there a way to change the overall highlighting color schema, or manually adjust colors for specific languages? I looked under the plugins menu, but it looks like you can only really enable and disable the plugins, not much for options to change? Is there a config file or similar I can adjust for this?

Thanks, -MH

lfrym commented 2 years ago

If you go to the /.obsidian/vault/plugins/cm-editor-syntax-highlight-obsidian folder within your vault, you can edit styles.css. If you want different styles per language you could probably play around with main.js, though I haven't tried it.

Note that the /.obsidian folder may be hidden by default. On MacOS you can use cmd+shift+period to make it visible.