1
votes

I know PyCharm lets you customize font coloring from the program level, in settings but I can't quite pull it off when it comes to regex.

There are lots of options for regex there but option I can't find is one that deals with backgroup color. There is this light yellow/green color which I would like to get rid of. Any ideas?

enter image description here

2

2 Answers

7
votes

File->Settings->Editor->Colors & Fonts->General

On the right side, choose "code"->"Injected language fragment"

You can change or remove the background color. enter image description here

The side effect is that it will also affect other syntax such as SQL in your code.

-1
votes

Prefix your regexp with r :

pattern = r'\d-\d-\d'

If it is not enough maybe https://plugins.jetbrains.com/plugin/2917?pr=phpStorm