yoyurec / logseq-awesome-styler

🎨 Totally customizable theme with presets: colors, backgrounds, fonts and sizes, etc... Logseq plugin
MIT License
183 stars 9 forks source link

Is there any approach to customize syntax highlight of code block? #51

Closed mmssddss closed 1 year ago

mmssddss commented 1 year ago

Idea the default syntax highlight of code block is not pretty as I expected It will be great if the syntax highlight theme could be customized. Is there any plan on this?

yoyurec commented 1 year ago

inline code or CodeMirror blocks?

mmssddss commented 1 year ago

codemirror blocks I have noticed most of the logseq theme are using default syntax highlight

yoyurec commented 1 year ago

CodeMirror has own themes https://discord.com/channels/725182569297215569/752845138148982877/990721939062530128

quick heads-up for people who where using codemirror themes to style their code blocks: it seems Codemirror is now at version 6, and the link to the css themes should now be updated to add an extra /5 : so in custom.css, instead of @import "https://codemirror.net/theme/%themename%.css"; it should now be @import "https://codemirror.net/5/theme/%themename%.css"; (for moxer.css this would be @import "https://codemirror.net/5/theme/moxer.css";

related link about how to add extra options and themes for code blocks: https://github.com/logseq/logseq/pull/3699