Community
    • Login

    Can I style a code starting with $ and ending with a space?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 282 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.
    • T
      TERLENtA
      last edited by

      I.e. $name1 or @name1.name2 or even $name1.name2.name3?
      So markup needs to be done till the first empty space after $.

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

        @TERLENtA

        Your title isn’t exactly in sync with your explanation, but…let’s work with your actual example and disregard the title irregularity.

        Well, it’s not a permanent styling, but you could do a Search > Mark… operation and put (?-s)[$@].*?(?=\s) into the Find what box, then press the Mark all button.

        If you are willing to use the Pythonscript plugin, you can search this forum site for EnhanceUDLLexer and you’ll have the ability to make it more of a permanent thing.

        Perhaps also a standard UDL (User Defined Language) can help in your case; this would also make the styling permanent.

        1 Reply Last reply Reply Quote 2
        • EkopalypseE
          Ekopalypse
          last edited by

          Perhaps also a standard UDL (User Defined Language) can help in your case; this would also make the styling permanent.

          Yes, use $ as a keyword and check prefix box.
          Will color everything starting from $ til first non-word-char.

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