• Login
Community
  • Login

Trying to get Notepad++ to use: ˓ and: ˒ as delimiter characters for syntax hi-liting.

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 3 Posters 484 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.
  • M
    Marc Forward
    last edited by Oct 29, 2022, 7:34 AM

    i am trying to use the delimiters feature as documented here: https://ivan-radic.github.io/udl-documentation/delimiters/
    Specifically, source code comments of a new programming language are bracketed with " ‹ " and " › ", but Notepad++ ignores these characters - seemingly for no other reason than that they are not standard ASCII characters!
    if i use " < " and " > ", then the syntax hi-liting works, but i can’t use " ‹ " or " › " for open comment and close comment, which is really annoying.
    any ideas?
    ~marc f.

    A 1 Reply Last reply Oct 29, 2022, 11:17 AM Reply Quote 0
    • A
      Alan Kilborn @Marc Forward
      last edited by Alan Kilborn Oct 29, 2022, 11:18 AM Oct 29, 2022, 11:17 AM

      @Marc-Forward said in Trying to get Notepad++ to use: ˓ and: ˒ as delimiter characters for syntax hi-liting.:

      that they are not standard ASCII characters!

      This is a long-known limitation of the UDL.
      I didn’t see it documented in the user manual; perhaps it should be.

      M 1 Reply Last reply Oct 29, 2022, 5:09 PM Reply Quote 2
      • M
        Marc Forward @Alan Kilborn
        last edited by Oct 29, 2022, 5:09 PM

        sigh. this limitation in the UDL certainly should have been documented, it needlessly wasted my time.

        as limitations go, this one is severe and the tragedy is that it is so utterly arbitrary.
        lack of orthogonal support for Unicode is a deal breaker for me, i was really hoping to use Notepad++, but now have to find another editor without this limitation (if none out there, will be forced to program my own editor). sigh.

        P A 2 Replies Last reply Oct 29, 2022, 7:31 PM Reply Quote 0
        • P
          PeterJones @Marc Forward
          last edited by Oct 29, 2022, 7:31 PM

          @Marc-Forward said in Trying to get Notepad++ to use: ˓ and: ˒ as delimiter characters for syntax hi-liting.:

          lack of orthogonal support for Unicode is a deal breaker for me

          You are probably gone, but if you do check for replies still, you could use EnhanceAnyLexer plugin to add regex-based foreground highlighting to any lexer, including any UDL. And that plugin does support Unicode in the regex.

          M 1 Reply Last reply Oct 29, 2022, 9:38 PM Reply Quote 0
          • A
            Alan Kilborn @Marc Forward
            last edited by Oct 29, 2022, 8:57 PM

            @Marc-Forward said in Trying to get Notepad++ to use: ˓ and: ˒ as delimiter characters for syntax hi-liting.:

            in the UDL certainly should have been documented, it needlessly wasted my time

            Well, as the product you were using cost you nothing, a possible “waste of time” is a reasonable cost.

            1 Reply Last reply Reply Quote 0
            • M
              Marc Forward @PeterJones
              last edited by Oct 29, 2022, 9:38 PM

              @PeterJones, thanks muchly, you have given me a lead i can pursue and explore.

              but am not looking forward to rolling up my sleeves and getting my hands all greasy in the bowels of a regexing system.

              P 1 Reply Last reply Oct 29, 2022, 10:05 PM Reply Quote 0
              • P
                PeterJones @Marc Forward
                last edited by Oct 29, 2022, 10:05 PM

                @Marc-Forward

                If your langauge is called MyCoolLanguage, then all you need in the EnhanceAnyLexer config is

                [MyCoolLanguage]
                0xcccccc = ‹.*?›
                

                I just set mine to the default “User Defined Language”, which needs [udf] as the config-file header, but this shows it working:
                f1b71f4b-54b2-4f74-980d-1ff2a332d047-image.png

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