Obsidian-Code-Styler icon indicating copy to clipboard operation
Obsidian-Code-Styler copied to clipboard

Alternative Highlights

Open berkobob opened this issue 4 months ago • 1 comments

I would very much like to create alternative highlights as per: https://github.com/mayurankv/Obsidian-Code-Styler#alternative-highlights but, for the life of me, I cannot find the settings to add three further types of highlight colours. Where is it, please?

berkobob avatar Nov 07 '25 15:11 berkobob

You can add new colors through settings window. Open code styler settings b selecting code styler from left menu in settings window. then choose codeblock styling from choose settings page combo. it is the third settings control. and choose codeblock highlighting from choose codeblock settings combo. it is under the preview pane. now you can add colors by clicking add button.

ckandirali avatar Nov 16 '25 12:11 ckandirali

I've noticed that it can be affected by what theme you've set in Obsidian. As an example, with the Default theme, Catppuccin, or Velocity, those settings are missing, and there's only one value in Codeblock Highlight > Highlighting Appearance, which is Codeblock Active Line Highlight. Changing the theme to Primary has a lot more values there. So what I tend to do is change to Primary, change the setting value, then switch back to one of the other themes, and then the setting persists, even if it's no longer appearing in the settings menu.

Kayzels avatar Nov 26 '25 09:11 Kayzels