Brion Vibber
f059181154
Cleanup for r37495 (adds line highlighting support to geshi plugin):
...
* Break input validation out to a function so it doesn't mush up main program flow readability
* Reduce denial of service attack area by imposing an arbitrary limit on the size of line ranges
* Reject 0 as a valid input line
Some further notes:
* Currently, the line numbers given for highlighting seem to ignore the 'start' line number provided for displaying line numbers. This is IMHO a bit confusing; it might be better to add the start line number in so you can specify line numbers which match what will be displayed.
* You can specify line numbers after the end of the document without complaint. It might be better to count the lines and ignore any additional ones.
2008-07-10 20:55:02 +00:00
Niklas Laxström
9bb924174a
* Add highlight support: highlight=3,6-7
2008-07-10 12:45:20 +00:00
Siebrand Mazeland
d31a5dc268
* use wfLoadExtensionMessages for SyntaxHighlight_GeSHi
...
* add version in extension credits
* update Translate extension
2008-01-11 09:05:18 +00:00
Rotem Liss
95156dcd11
Adding text-align: left to the div of <source>, to avoid problems when the text-align is set differently.
2007-12-14 16:54:00 +00:00
Rob Church
7f976ff398
(bug 11351) Normalise language names to lowercase for consistent class names, etc.
2007-09-15 16:09:30 +00:00
Rob Church
86a708ab29
Honour 'LoadAllMessages' hook; make sure messages show up in Special:Allmessages, etc.
2007-07-21 01:26:43 +00:00
Rob Church
daa4578caf
Spacing
2007-07-18 21:51:27 +00:00
Aryeh Gregor
1b487ec637
Avoid using CSS for semantic information like directionality.
2007-07-18 21:43:54 +00:00
Rotem Liss
50a18bcaaf
Source code should be LTR: adding style.
2007-07-18 17:06:27 +00:00
Brion Vibber
f4a9164e78
bug 10594 -- @import needs to be at the start of the <style> due to anal spec
2007-07-17 17:45:02 +00:00
Brion Vibber
c16416bcd1
Don't spew pathnames into the language list, that's kind of.... lame?
2007-07-13 18:07:52 +00:00
Aryeh Gregor
31d38a098d
Revert r23618 per Brion. Now, to get phase3 and extensions in the same repo locally so I can commit to both at once . . .
2007-07-02 23:24:19 +00:00
Aryeh Gregor
64f6986768
Remove function that hooks into ShowRawCssJs, which no longer exists (<source> tags can be added manually, and anyway people were complaining that it caused Firefox to hang on very long JS pages)
2007-07-01 19:58:44 +00:00
Rob Church
27ffb0306c
Update for r23553, r23554
2007-06-29 13:57:08 +00:00
Rob Church
168e3760e9
* Massive refactor; move a lot of code out of the global function namespace and clean several bits up, including broken use of $wgUser inside parser hook
...
* Take advantage of the new "ShowRawCssJs" hook and format CSS and JavaScript when viewing those pages
2007-06-29 04:33:14 +00:00