NotePad++: styling the text before the assignment in an INI file

7

3

Using the Style Configurator, Notepad++ does not have a preference to change the style of text before a colon : or equals sign = in an *.ini file. It is a trivial detail, but it would help make overlooking configuration files a lot easier.

style example

DEFAULT, COMMENT, SECTION, ASSIGNMENT, or DEFVAL does not modify the text before the colon.

iglvzx

Posted 2012-02-13T23:13:02.017

Reputation: 21 611

Answers

5

Adding the following property to the <LexerType name="ini" desc="ini file"> block in stylers.xml does the trick!

<WordsStyle name="KEYWORD" styleID="5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" />

Now you can modify the KEYWORD entry to change the style of text before the colon.

keyword result

iglvzx

Posted 2012-02-13T23:13:02.017

Reputation: 21 611