Community
    • Login

    UDL for .ini and .cfg files

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    udlcolor syntaxhighlight
    3 Posts 2 Posters 390 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Helix751H
      Helix751
      last edited by Helix751

      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.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Helix751
        last edited by

        @Helix751 ,

        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.

        Helix751H 1 Reply Last reply Reply Quote 2
        • Helix751H
          Helix751 @PeterJones
          last edited by

          @PeterJones Thanks for the quickl answer. Will try the addon.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors