Community
    • Login

    UDL, style, apostrophe vs quote

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 2.9k 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.
    • Vitaliy TechV Offline
      Vitaliy Tech
      last edited by Vitaliy Tech

      Hi friends,

      could you please help me with creating own style? I want to highlight strings in quotes, like ‘some string’. But when it’s met apostrophe inside the string it becomes treat it as quote.
      ‘it’ s some string’
      Is it possible to setup it somehow like as treat this sign as quote if it at the begging of the line or space(tabulate) exists before it? I’m trying to do this via Operators & Delimiters section.

      Can you advise any links with UDL 2 examples?

      Thnx!

      1 Reply Last reply Reply Quote 0
      • Jim DaileyJ Offline
        Jim Dailey
        last edited by Jim Dailey

        @Vitaliy-Tech
        Well, if the consumer of the string allows for some sort of escape character, say “~”, then you’d enter the string as:

        'it~'s some string'
        

        and you’d put “~” in the escape character box of the UDL dialog.

        1 Reply Last reply Reply Quote 0
        • Vitaliy TechV Offline
          Vitaliy Tech
          last edited by

          Yep, I know about escape symbols but in my case it’s not a nice solution. I’d prefer to have ability to set at least two symbols as delimiter such as < space+’ > or backward < '+space >.

          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