Community
    • Login

    User defined language - contractions vs single quotes

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 390 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.
    • JBird1977J
      JBird1977
      last edited by

      Hey all,

      So I’ve got a user defined language I’m using for a custom language we script in at work.

      In this case one of the operator’s styles I’ve set is this: Open: ’ Close: ’ Up to this point setting a single quote to open/close has worked. However, I am now at a point where I need to verify text on a webpage and the word “you’re” is in it. This causes all the text in the script below this line to be the same color since NP++ sees the apostrophe in that word to be an open single quote with no end.
      Ideally I’d like to check for both scenarios but not sure if that’s possible.

      Has anyone encountered this and found a workaround?

      Thanks for any help!

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

        @JBird1977 Have you tried using delimiter 1 style for “strings” and delimiter 2 style for ‘strings’?

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors