Community
    • Login

    User define Language question

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 484 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.
    • MURIM BAUDINM Offline
      MURIM BAUDIN
      last edited by

      Hello,

      I am trying to have a specific colour for anything starting with $ and finishing by # and starting with $ and finishing by ? I am trying to play with the user define language without lot of success. I am assuming is possible as pre-user SHELL language manage to do it.

      I am using the “Operators and delimiters” with Open $ and close #, does not seem we can use several options in the close

      Working fine :

      23eba99b-0e25-494b-b915-ec72c4778e22-image.png

      But not working

      f56e3133-5190-4021-9a78-dedfa89ceecf-image.png

      EkopalypseE PeterJonesP 2 Replies Last reply Reply Quote 0
      • EkopalypseE Offline
        Ekopalypse @MURIM BAUDIN
        last edited by

        @MURIM-BAUDIN

        No, that does not work. You could use the EnhanceAnyLexer plugin and use two regexes for it.

        1 Reply Last reply Reply Quote 1
        • PeterJonesP Offline
          PeterJones @MURIM BAUDIN
          last edited by

          @MURIM-BAUDIN said in User define Language question:

          I am assuming is possible as pre-user SHELL language manage to do it.

          To clarify, the pre-defined languages are all made with custom code compiled into the Notepad++ source; the UDL are all based on simple text-matching without any wildcard ability or any such “fancy” features. Just because something can be done in a built-in lexer doesn’t mean it can be replicated in UDL.

          For anything more complicated than simple text-matching, UDL is not sufficient. You would either need something like a lexer plugin, or have another plugin (like @Ekopalypse’s EnhanceAnyLexer, already mentioned) that could provide an alternative method of doing the highlighting.

          1 Reply Last reply Reply Quote 3

          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