UDL for .ini and .cfg files
-
Hi. I’m tryng to color INI keys, those that start each line, before the “=” char.
[section1] key1=value1 or whatever key2=value2 or whatever [section2] key3=value3 or whatever key4=value4 or whatever
In this example I’d like to color key1, key2, key3 and key4.
Its’s easy to color the “=” operator and the [section]s with delimiters, but I cant find how to color “from the beginning of a line to an = char”.
BTW: The built-in “INI file” language formats the keys accordingly, but I’d like to have more control over how values are presented with a UDL.
Thanks in advance.
-
UDL does not have that ability.
If you want more control, you could try to use the EnhanceAnyLexer plugin with either your UDL or with the built-in INI lexer , which allows you to change the foreground color of text in a specific lexer based on regular expressions.
-
@PeterJones Thanks for the quickl answer. Will try the addon.