Community
    • Login

    UDL, style, apostrophe vs quote

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 2.6k 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.
    • Vitaliy TechV
      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
        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
          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors