Last modified: 2012-05-08 13:55:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32773, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30773 - Add line numbers for syntaxhighlight'ed pages and sections of pages
Add line numbers for syntaxhighlight'ed pages and sections of pages
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SyntaxHighlight (GeSHi) (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-05 20:17 UTC by Krinkle
Modified: 2012-05-08 13:55 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Krinkle 2011-09-05 20:17:42 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.
Comment 1 Krinkle 2011-09-05 20:18:19 UTC
Reminder: Make sure extensions like SyntaxHighlight_GeSHi don't throw up.
Comment 2 Krinkle 2011-09-05 20:22:10 UTC
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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links