Community
    • Login

    UDL for .ini and .cfg files

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    udlcolor syntaxhighlight
    3 Posts 2 Posters 691 Views 2 Watching
    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 Offline
      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 Online
        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 Offline
          Helix751 @PeterJones
          last edited by

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

          1 Reply Last reply Reply Quote 0

          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors