Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help wanted · · · – – – · · ·
    3
    7
    107
    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.
    • Marc Forward
      Marc Forward last edited by

      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.

      Alan Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @Marc Forward last edited by Alan Kilborn

        @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.

        Marc Forward 1 Reply Last reply Reply Quote 2
        • Marc Forward
          Marc Forward @Alan Kilborn last edited by

          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.

          PeterJones Alan Kilborn 2 Replies Last reply Reply Quote 0
          • PeterJones
            PeterJones @Marc Forward last edited by

            @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.

            Marc Forward 1 Reply Last reply Reply Quote 0
            • Alan Kilborn
              Alan Kilborn @Marc Forward last edited by

              @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
              • Marc Forward
                Marc Forward @PeterJones last edited by

                @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.

                PeterJones 1 Reply Last reply Reply Quote 0
                • PeterJones
                  PeterJones @Marc Forward last edited by

                  @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
                  • First post
                    Last post
                  Copyright © 2014 NodeBB Forums | Contributors