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 whateverIn 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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login