问题描述
如何在jupyter中更改匹配括号的颜色?规则,方括号和花括号在显示为匹配对时都以亮绿色显示,很难在浅色背景中看到.
How do I change the color of the matching parentheses in jupyter? Regular, square, and curly brackets all appear in bright green when they are shown as matching pairs and it is pretty difficult to see in light background.
通过添加 .CodeMirror-matchingbracket
来修改〜/.jupyter/custom/custom.css
似乎对我无济于事.
Modifying ~/.jupyter/custom/custom.css
by adding .CodeMirror-matchingbracket
doesn't seem to do anything for me.
推荐答案
在〜/.jupyter/custom/custom.css中,尝试添加以下内容:
In ~/.jupyter/custom/custom.css try adding the following:
.cm-s-ipython .CodeMirror-matchingbracket {颜色:黑色!重要;}
如果您不希望颜色为黑色,则可以使用任何喜欢的 webcolors
.cm-s-ipython .CodeMirror-matchingbracket { color: black !important;}
If you don't want the color to be black you can use any webcolors you like.
这篇关于更改jupyter的匹配括号颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!