Community
    • Login

    User defined language to highlight different parts of a line

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 202 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.
    • A
      AndrewCliffordOrica
      last edited by

      Hi, I have had a look on here and google, but I can’t find anything that covers what I am trying to do.

      Is there a way, using User Defined Languages, to set the styling (I just want different background colours) of blocks of text based purely on the position of the character on the line?

      For example, I have a string of alphanumeric characters 20 characters long. I want characters 0-5 to have a green b/g, 6-10 to have a blue b/g and 11-19 to have a yellow background.

      Is this possible?

      Thanks!

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @AndrewCliffordOrica
        last edited by

        @AndrewCliffordOrica said in User defined language to highlight different parts of a line:

        I just want different background colours

        You can’t reasonably do what you want to the background coloring.
        But you can do it, with a plugin, to the foreground coloring, see EnhanceAnyLexer.

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