I’m working on a Mac Mini OS 13.7.1 in Scrivener 3.5.2 and I’ve been adding in HTML in the editor to create ALT tags in my epub. I noticed something odd:
This text has a Raw HTML block style. When I edit the folder name images to Images, Scrivener inserts a curly quote. Obviously, this messes up my HTML and I have to hunt for them. Can I prevent this from happening?
For anyone writing interleaved HTML and prose, or for example writing a technical book about programming, with copious code samples, I recommend throwing a keyboard shortcut on the Edit ▸ Substitutions ▸ Smart Quotes command (and maybe the dashes one too, as you don’t want <!— Oops! —> to end up in your readable text!).
For spot fixes, probably the most efficient way is:
The shortcut for Edit ▸ Select ▸ Select Style Range, since such snippets are bound to be in a raw markup pass-thru style.
Or, probably even more efficiently if you’re copyproofing everything, Edit ▸ Find ▸ Find by Formatting with the search mode set to look for this style in particular, which will jump from hit to hit with the result already selected.
Edit ▸ Transformations ▸ Convert Quotes to Straight Quotes, which works upon selections if one is provided.