Oh! I missed that there's more to that file.
(Notepad++ lets me see all the times a search term comes up, but Scrivener just shows me the first and apparently expects me to hunt for the rest. I've currently got the full code in Scrivener in sections so that I can easily hunt down which part to edit in NPP.)
Hmm... this might actually make part of what I'm doing easier. Or possibly screw it all up again, depending. Guess we'll see.