Community
    • Login

    UDL operator not recognized

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 576 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.
    • I Offline
      IstvanZachar
      last edited by

      I have created a custom language and have defined some two-character operators: ++ >> ∞∞.
      While ++ and >> are recognized, ∞∞ is not. I assume this is an Unicode issue?

      04d041f6-fb69-48a6-9fec-083d1b141d4f-image.png

      Any help is appreciated how to make ∞∞ stand out too.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Online
        PeterJones @IstvanZachar
        last edited by

        @IstvanZachar said in UDL operator not recognized:

        I assume this is an Unicode issue?

        Correct, UDL is not Unicode-enabled, unfortunately.

        Any help is appreciated how to make ∞∞ stand out too.

        The plugin EnhanceAnyLexer will allow regex-based enhancements to a lexer or UDL:

        e31df74b-74f7-4561-a6d5-e1f9f38eca3b-image.png

        FYI: my example was done in [normal text] (ie, a .txt file), but if you have a file open that’s using your FamilyTree UDL, then when you use Plugins > EnhanceAnyLexer > Enhance Current Language, it will put you in the [FamilyTree] section of the EnhanceAnyLexerConfig.ini (creating it if necessary). Once you save the ini file, EnhanceAnyLexer will always add in that regex-based highlighting for your specified UDL.

        I 1 Reply Last reply Reply Quote 2
        • I Offline
          IstvanZachar @PeterJones
          last edited by

          @PeterJones Thanks, this seems to work! Is there a way to define additional style specification, like bold or italic, in EnchanceAnyLexer?

          EkopalypseE 1 Reply Last reply Reply Quote 0
          • EkopalypseE Offline
            Ekopalypse @IstvanZachar
            last edited by

            @IstvanZachar

            Is there a way to define additional style specification,

            No, not yet. There is an attempt to achieve this, but I have not yet succeeded.

            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