Community
    • Login

    User defined language - contractions vs single quotes

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 595 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.
    • JBird1977J Offline
      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 Offline
        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

        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