Last modified: 2012-05-08 13:55:04 UTC
bug 28626 gave us a nice javascript validator. And it's throwing errors to the console and even knows the line number within the wiki script. All awesome, but.. It's another thing to actually get those line numbers. I'm suggesting that on pages that are "isCssOrJsPage" or "isCssJsSubpage" (according to their respective methods in the Title-object), improved by showing line numbers at the beginning. We already give them special treatment by wrapping the page in <pre> and not parsing the text. This would be a good next step, especially now that we have wgResourceLoaderValidateJS which provides line numbers.
Reminder: Make sure extensions like SyntaxHighlight_GeSHi don't throw up.
Hack, might as well do it all cool and make it part of SyntaxHighlight_GeSHi. Renaming bug: Add line numbers for syntaxhighlight'ed pages and sections of pages