Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 553 Views 1 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.
    • T Offline
      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 Offline
        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 Offline
          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

          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