clutcher / bh

Issue tracker for Better Highlights Intellij IDEA plugin
7 stars 0 forks source link

How to use regexp #65

Closed DenniLa2 closed 1 year ago

DenniLa2 commented 1 year ago

I couldn't find any examples of how to write rules using regular expressions. Could you please provide guidance on how to do this?

clutcher commented 1 year ago

@DenniLa2

If you have example of what you want to achieve I can help you a little bit with writing regexp.

DenniLa2 commented 1 year ago

Благодарю за ответ! Из-за слабого знания английского возникло недопонимание. Я не понимаю, куда в интерфейсе плагина вставлять регулярку? image Пробовал по разному, но результата не добился ((

Thank you for the response! Due to my limited knowledge of English, there was a misunderstanding. I don't understand where to insert the regex in the plugin interface. I've tried different approaches, but haven't achieved any results ((.

clutcher commented 1 year ago

@DenniLa2 Всё правильно. Тут пишешь регулярку, сохраняешь, закрываешь окно с настройками, открываешь настройки заново, идешь в Editor->Solor scheme->Better Highlights Tokens, находишь свою регулярку в списке и выставляешь ей цвет.

English: You are right. Here you write a regular expression, save it, close the settings window, open the settings again, go to Editor->Solor scheme->Better Highlights Tokens, find your regular expression in the list and set a color for it.