Community

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

    UDL Operators - unicode support?

    Help wanted · · · – – – · · ·
    2
    3
    126
    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.
    • moon6969
      moon6969 last edited by

      I’m making a UDL for some UTF-8 files and was hoping to use some unicode [Sm] Symbol, Math for Operators1.

      From Ivan’s UDL operators documentation …

      Operators1
      This is a “forward” search group.
      These operators can be “glued” to other keywords. You can use it to define operators like:
      ! && << >> + - _ %
      In short: these should be special non-alphanumeric characters

      On Notepad++ v7.8.6 (32-bit) I can only get them working with basic ASCII (codepoint < 7F) non-alphanumerics - is there a way around this?

      NB: Same issue appears with Delimiter Open/Close.

      Cheers.

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

        @moon6969 said in UDL Operators - unicode support?:

        I can only get them working with basic ASCII

        I hadn’t tried before today, but I concur

        is there a way around this?

        Natively:

        • for delimiters? no
        • for operators? if you’re willing to use one of the keywords lists for “fancy operators”, you could give it the same (or similar) styling, so those keywords look like the operators

        Using a scripting plugin (like PythonScript)

        • you can add extra highlighting to a UDL language using regexes via the script EnhanceUDLLexer.py that @Ekopalypse shares in this linked post
        moon6969 1 Reply Last reply Reply Quote 1
        • moon6969
          moon6969 @PeterJones last edited by

          @PeterJones Thanks.
          I was hoping to use operators since they “glue” - my initial testing indicates that keywords need spaces to be recognised which is difficult to ensure in my case.

          I’ll check out the suggested script - might be a quick win if it’s fast enough on some of the decrepit hardware I need to support!

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors