-->

Changing jupyter's matching parenthesis color

2020-06-25 04:59发布

问题:

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.

Modifying ~/.jupyter/custom/custom.css by adding .CodeMirror-matchingbracket doesn't seem to do anything for me.

回答1:

In ~/.jupyter/custom/custom.css try adding the following:

.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.