@William-Fields said in Curse of the Curly Quotes:
When pasting code into NP++ from another source, no matter what I do, if the source has curly quotes, the pasted content has curly quotes.
Right. That’s because the curly quote characters have different codepoints from ASCII quotemarks.
It’s doing the right thing.
If you want to convert, then use a regular expression:
FIND = [“”]
REPLACE = "
SEARCH MODE = Regular Expression
REPLACE ALL
change all curly quotes to straight quotes when opening documents or pasting content
There’s no such command or option in Notepad++, because that would be Notepad++ changing characters from one codepoint to another without user interaction, which is the antithesis of text editing
https://community.notepad-plus-plus.org/post/102348
The Direct Write ligature-effects from the post you showed is just the fonts changing the appearance of characters based on font ligature rules, but the underlying characters that Notepad++ is presenting are the exact same characters as found on disk. On the other hand, the curly quotes that you are copying and pasting are different characters from the ASCII quote.