yoyurec / logseq-awesome-styler

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

Wrapped code blocks or syntax highlighting in single backtick code snippets #62

Closed itsamemarkus closed 1 year ago

itsamemarkus commented 1 year ago

Idea I don't know if it's possible to do that as a theme or if it requires deeper logseq changes. But one thing I'd like to have is an option to wrap code blocks.

Screenshots currently image

something like that, maybe with visual indicator that the line is wrapped image

The main reason I'd like to see this is for large one line CLI commands like this one

image

Maybe another solution would be to have syntax highlighting enabled in single backtick code snippets

yoyurec commented 1 year ago

it's Logseq core things but you can pass CodeMirror options in config.edn. Search lines:

 ;; Extra CodeMirror options
 ;; :editor/extra-codemirror-options {:keyMap "emacs" :lineWrapping true}

uncomment and set lineWrapping:

 ;; Extra CodeMirror options
 ;; :editor/extra-codemirror-options {:keyMap "emacs" :lineWrapping true}
:editor/extra-codemirror-options {:lineWrapping true}