I’m trying to write programming documentation, and in multiple browsers I’m unable to type programming literals in a literal way. Even in code blocks, I’m seeing two dashes being automatically replaced with emdashes (a syntax error, if anyone copy-pastes to the shell), and single quotes being replaced with unicode (closing) smart quotes.
I checked the OS settings, and substitutions are off; I checked the browser’s settings, and substitutions are off there, as well.
Automated curly quotes were breaking some things for me last week, and the automated em dash was breaking things the week before that. I had to copy in the correct characters from a text editor, one instance at a time.
I just ran into this with smart quotes. Took this video to show the issue. Turns out if you highlight the smart quotes and type in the quote again, or if you “undo” it resets to dumb quotes.
Previously those characters weren’t replaced by typographic ones if paragraph or character style was Code. This apparently broke either in the new editor (the one with columns and the canvas layout) or generally with some update.
Absolutely infuriating behaviour. It is a default system feature. Turn the substitution on or off in macos or browser and it is gone BUT not in Coda!
I construct my LESS CSS code in table cells and every time I need to copy/past it from outside instead it of writing it directly in the cell or I forget or miss the auto replacement and the code is corrupted.