User defined language - contractions vs single quotes

  • 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!

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

Log in to reply