Tidy! does 'try' some fix-up in code, but not many... it is after all
called "HTML Tidy", not "ASPX Tidy" ;=))
But the parsing of 'code', and the pprint output of 'code' is quite well
separated in Tidy!, and feel free to experiment with improvements to
those code blocks...
But I see it as a quite difficult task for Tidy to be able to
'correctly' parse all code scripts, and thus be able to warn, suggest,
fix errors, etc...
Quite some time ago I did experiment with improving parsing of
text like `var a = "<script>";` - see issue #65 - but have not had
enthusiasm to follow through on this...