'Goland/Intellij - Change line background color based on text match

I want to change the background color (shade it a bit dark) when a certain commonly occuring keyword (for example, logger or monitor) occurs in the line. The idea is to visually demarcate the code that's not relevant to the code logic. Any idea how to do it in Goland or Intellij?

Preferences->Editor->color scheme has different configurations for various tokens and there's a way to change the background, but I can't find a regex or string search feature.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source