Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusting global theme #59

Open
SophieBosio opened this issue Nov 1, 2022 · 2 comments
Open

Adjusting global theme #59

SophieBosio opened this issue Nov 1, 2022 · 2 comments

Comments

@SophieBosio
Copy link

Is there any way to change the base/global theme for named languages?

I'm able to adjust the colours for the theme that affects the highlighting of my YAML frontmatter by changing the colours in /.obsidian/plugins/cm-editor-syntax-highlight-obsidian/styles.css.

However, changing it doesn't seem to affect the theme used to highlight specific languages. So if I just type in a code block, there's no highlighting and if I specify e.g., python, it uses some other theme but not the one I adjusted in styles.css.

Is there anyway I can specify to use my custom theme in these language-specific code blocks?
Thanks so much, I'm really grateful for this plugin!

@evilcomrade
Copy link

Id also love to know how to change this, would love to be able to use a monokai theme for my code blocks. I see codemirror even has the theme styles there, just not sure how to integrate them with this plugin.

@tortoo
Copy link

tortoo commented Jun 22, 2024

I have tested it several times and it seems that the plug-in has failed. No matter how I modify the styles.css file, it doesn't work. What should work is the code highlighting that comes with Obsidian, but the one that comes with it is too simple and the customizable parts are too limited. There are many things that can be modified in this plug-in, but unfortunately it cannot take effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants