Replace / remove highlighting in Jupyter Notebook with custom theme

不想你离开。 提交于 2019-12-12 05:39:31

问题


It's clear that the selection is for readability, but it seems too glaring to me.

A set of themes for Jupyter

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.


回答1:


The CSS selector for matching brackets is div.CodeMirror span.CodeMirror-matchingbracket

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 ;
}


来源:https://stackoverflow.com/questions/45657956/replace-remove-highlighting-in-jupyter-notebook-with-custom-theme

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!