Community
    • Login

    UDL operator not recognized

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 172 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.
    • I
      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
        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
          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
            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
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors