Skip to content

Desktop/Android APP 0.5.8 (Beta Testing) #3769

Answered by andelf
andelf asked this question in General
Discussion options

You must be logged in to vote

Customized CodeMirror Options

For those who are interested, and who want to customize code editing experience.

To add customized CodeMirror config, Go to Settings -> Edit config.edn

Add the following

 :editor/extra-codemirror-options 
  {:keyMap "emacs" 
   :lineNumbers false 
   :lineWrapping true}

All available options are at https://codemirror.net/doc/manual.html#config .

NOTE: Some options are not suitable to be used under logseq, and may cause buggy behavior.

To customize CodeMirror theme

Select your desired them from the theme list https://codemirror.net/theme/ https://codemirror.net/5/demo/theme.html .

 :editor/extra-codemirror-options   {:theme "blackboard"}

in custom.css, Add the…

Replies: 5 comments 3 replies

Comment options

andelf
Jan 6, 2022
Maintainer Author

You must be logged in to vote
1 reply
@chongli-2021
Comment options

Answer selected by andelf
Comment options

You must be logged in to vote
1 reply
@andelf
Comment options

andelf Jan 20, 2022
Maintainer Author

Comment options

You must be logged in to vote
0 replies
Comment options

andelf
Jan 7, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@andelf
Comment options

andelf Feb 18, 2022
Maintainer Author

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