使用自定义主题替换/删除Jupyter Notebook中的突出显示 [英] Replace / remove highlighting in Jupyter Notebook with custom theme
问题描述
很明显,该选择是为了提高可读性,但对我来说似乎太刺眼了.
It's clear that the selection is for readability, but it seems too glaring to me.
如何编辑配置并更改所选区域的透明度或颜色(蓝色),或者将所选内容反转为括号,或者将其完全删除?在CSS语法中,我根本不了解.
How can I edit the configuration and change the transparency or the color of the selected area (blue) or invert the selection to the bracket, or completely remove it? In css syntax I do not understand at all.
推荐答案
用于匹配括号的CSS选择器是div.CodeMirror span.CodeMirror-matchingbracket
The CSS selector for matching brackets is div.CodeMirror span.CodeMirror-matchingbracket
因此,您可以通过将以下代码放入custom.css
文件(~/.jupyter/custom/custom.css
)
So, you can change the colour of the bracket itself and the background colour of the bracket by putting the following code into your custom.css
file (~/.jupyter/custom/custom.css
)
div.CodeMirror span.CodeMirror-matchingbracket {
color: #INSERT-YOUR-DESIRED-BRACKET-COLOUR-HERE ;
background-color: #INSERT-YOUR-DESIRED-BRACKET-BACKGROUND-COLOUR-HERE ;
}
这篇关于使用自定义主题替换/删除Jupyter Notebook中的突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!