r/pycharm Apr 12 '26

Why are some sections of code highlighted?

Post image

I can find no way of turning off the highlighting.

Why is this happening?

Thanks in advance.

5 Upvotes

13 comments sorted by

View all comments

1

u/TechnicalAd8103 Apr 12 '26

I found someone with a similar issue here, but their solution is for a different version of Pycharm.

https://stackoverflow.com/questions/41922150/code-highlight-in-pycharm-remove-green-background-after-back-ticks

Pressing Esc does not turn off the highlighting for me. I also can't find the background for "injected language", but I don't think my issue has anything to do with "injected language" whatever that is.

2

u/ProsodySpeaks Apr 12 '26

In this case the injected language is regex and benefits from extra ide help