Community
    • Login

    How to create a UDL just to highlight things in smart quotes?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 2 Posters 754 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.
    • tomunderT Offline
      tomunder
      last edited by

      Hello!

      Notepad++ probably isn’t the right tool for what I’m doing, but it might be good enough.

      I’d like to create a user defined language that would highlight text between “ and ” as well as ‘ and ’ in the text in the editor.

      It seems like a UDL could do that but I can’t figure out how to go about it. Anyone willing to help me out?

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

        @tomunder

        like this?

        f866ff9e-dcc4-438b-a390-9642ce08d283-image.png

        tomunderT 1 Reply Last reply Reply Quote 2
        • tomunderT Offline
          tomunder @Ekopalypse
          last edited by

          @Ekopalypse Yes, exactly like that. But I don’t get the same result:

          8e6ec083-0634-46f2-a2bc-53d5acf70dd0-image.png

          You can see that style 3 using { } works as expected. (I clicked on the style button for all three and set different foreground colours)
          I’ve even copy pasted the quotes from the document into the open/close fields to be 100% sure that the characters are correct.

          The encoding on the document is utf8.

          here is my debug info:
          Notepad++ v7.8.2 (64-bit)
          Build time : Dec 4 2019 - 01:39:49
          Path : C:\Program Files\Notepad++\notepad++.exe
          Admin mode : OFF
          Local Conf mode : OFF
          OS Name : Windows 10 Home (64-bit)
          OS Version : 1909
          OS Build : 18363.900
          Plugins : ComparePlugin.dll mimeTools.dll NppConverter.dll NppExport.dll NppFTP.dll

          Any help would be most appreciated.

          EkopalypseE 1 Reply Last reply Reply Quote 2
          • EkopalypseE Offline
            Ekopalypse @tomunder
            last edited by

            @tomunder

            I see, the reason for this is that you use non-asccii delimiters,
            this seems to be not supported, currently .
            Maybe you want to open a feature request?

            1 Reply Last reply Reply Quote 2
            • tomunderT Offline
              tomunder
              last edited by

              Ahh. I didn’t look closely enough at your screen shot. That explains it.

              Thanks for taking the time to help.

              1 Reply Last reply Reply Quote 0

              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