Community
    • Login

    Plug-In -> Colorize Partial/Full line (until the end of visible line in editor)

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 3 Posters 361 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.
    • IBIT_ZEEI
      IBIT_ZEE
      last edited by

      Is there a Plug-In or simple code snippet I could adapt,
      that uses a Regex find and to colorize a full-line when found…
      or a partial line (from where is found to the end of visible editor space)

      I think this is a functionality that would fit like a glove
      in the “Language Definition” feature…
      but since it does not exist yet… ;-)

      In my case:
      I need to colorize all line when ^$line:$ is found
      or colorize a block of lines when ^$block:(.*)^$ is found

      TIA/ZEE

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @IBIT_ZEE
        last edited by

        @IBIT_ZEE

        not quite sure but what about the mark feature from the find dialog?

        ef85d875-aa16-41d8-aa9b-a4eab9fe71f1-image.png

        IBIT_ZEEI 1 Reply Last reply Reply Quote 1
        • IBIT_ZEEI
          IBIT_ZEE @Ekopalypse
          last edited by

          @Ekopalypse
          objective is to “colorize the full line where ‘regex’ is found…”
          and ‘on the fly’… as you edit/scroll/etc…

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

            @IBIT_ZEE said in Plug-In -> Colorize Partial/Full line (until the end of visible line in editor):

            objective is to “colorize the full line where ‘regex’ is found…”

            Use the Mark function as previously described and put this in Find what: (?-s).*?Z.*? where Z is the placeholder for your regular expression of interest.

            I’d use your examples instead of Z, but they are a bit confusing as to what you want.

            and ‘on the fly’… as you edit/scroll/etc…

            Well, if you tick the Wrap around checkbox as previously described, you can be sure that as you scroll around the doc after marking it that you’ll see the colorized lines in the full document.

            1 Reply Last reply Reply Quote 1
            • EkopalypseE
              Ekopalypse @IBIT_ZEE
              last edited by

              @IBIT_ZEE

              If I understand correctly you are looking for something like this !?

              Basically, you want to enhance an existing UDL or builtin lexer, correct?

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