firasdib / Regex101

This repository is currently only used for issue tracking for www.regex101.com
3.27k stars 199 forks source link

How to change the background color of matches in the results window using CSS? #1886

Closed kings2u closed 2 years ago

kings2u commented 2 years ago

Question

I am trying to make the highlighted matches in the results window more easy to see using CSS. However, I can’t seem to find the path to the right CSS property to edit. Dos anyone have an example of how to do this?

Thank you!

firasdib commented 2 years ago

The css variables --match-group-N and --match-group-N-alt are the ones you need to modify. Do note these are cached, which means you will have to open/close the editor by either reloading or navigating to a sub-page and back for them to take effect.