Victor Vasiliev
bcd5a74456
Make certain members of the SyntaxHighlight_GeSHi class public, so other
...
extensions may use it.
2011-08-14 06:59:35 +00:00
Brion Vibber
0cd1f4b868
* (bug 10201) SyntaxHighlight_GeSHi now shows the text unformatted along with warning if the language is invalid or unrecognized.
...
Uses a simple <pre> which may not be ideal but works ok. :D
Consolidated a few repeat lines.
2011-05-13 13:27:29 +00:00
Max Semenik
25fb269d86
SyntaxHighlight_GeSHi: collapse language list by default to look less scary
2011-02-25 16:38:23 +00:00
Sam Reed
8b3fe7231c
Minor followup to r81865, only set dir to ltr if it's not already set to something else
2011-02-11 00:31:17 +00:00
Sam Reed
0ed4e3e390
*(bug 10081) Allow html attribute on SyntaxHighlight GeSHi extension
...
Patch by Umherirrender
(Seems to be all but based on the Poem implementation, as per Brions suggestion)
2011-02-10 01:59:14 +00:00
Sam Reed
40db2f22e7
Explicitally define a couple of variables
2011-01-23 09:38:33 +00:00
Sam Reed
fcb04eeed7
More deprecated method call removals and updates
2010-10-29 15:32:44 +00:00
Sam Reed
29de7361fb
Fixup (and add) some braces, remove trailing whitespace
2010-08-09 06:56:38 +00:00
Jeroen De Dauw
4bc3dbd009
Follow up to r70741
2010-08-09 06:25:28 +00:00
Max Semenik
973516a5cb
SyntaxHighlight_GeSHi: although I haven't been able to reproduce bug 23840, this should fix it.
2010-06-12 06:27:04 +00:00
Chad Horohoe
6ecc369fbd
Revert r66934 (Removing wfLoadExtensionMessages() from everything). I disagree on principle...we branch extensions for this very reason. But people want trunk extensions compatible for several versions back, meh.
2010-05-27 15:56:53 +00:00
Chad Horohoe
b57547e670
Large commit. Removed 800+ references to no-op wfLoadExtensionMessages()
2010-05-26 22:25:32 +00:00
Happy-melon
0342a1a717
Follow-up to r63815: code style
2010-03-16 12:50:30 +00:00
Happy-melon
d0eb05173e
(bug 22848) Rm extraneous space after <span> tag, which Tidy moves outside the tag forcing a perhaps-unwanted break.
2010-03-16 12:48:12 +00:00
Max Semenik
8902d97dd0
SyntaxHighlight_GeSHi: fixed bug with <source lang=""> spewing zillion PHP warnings. Patch by Dan Barrett
2009-11-19 20:37:17 +00:00
Shinjiman
e63f55da7d
show the version information of GeSHi currently using, only show the version when Special:Version is loaded using the SpecialVersionExtensionTypes hook.
...
Link to r52546, r52550 and r52555 as there have some comments on CodeReview.
2009-07-01 19:34:01 +00:00
Shinjiman
bb149b0887
revert r52546 and r52550 for slow loading for the class, per CodeReview.
2009-06-29 17:06:59 +00:00
Shinjiman
b7179c44cf
tweak for r52546, use require_once() to make the class file only load once.
2009-06-29 16:29:43 +00:00
Tim Starling
b424069389
Added a class to the wrapper to allow site CSS to re-add the dashed borders on wikis that want them.
2009-06-24 05:39:23 +00:00
Tim Starling
ae726406e2
Added a profiling section for the parser hook.
2009-06-24 05:25:32 +00:00
Brion Vibber
9406b30989
Follow-up to r50693 "Add optional $wgSyntaxHighlightDefaultLang parameter; allows people to set a default language that shows up if the lang parameter is missing."
...
Fix whitespace (tab/space issues) and drop duplicated strtolower() call to common code path
2009-05-18 20:28:50 +00:00
X!
72521f6b30
Add optional $wgSyntaxHighlightDefaultLang parameter; allows people to set a default language that shows up if the lang parameter is missing.
2009-05-17 15:21:37 +00:00
Siebrand Mazeland
005a5d82a9
(bug 16317) source tag error shows invalid example in german error message
2008-11-21 08:41:06 +00:00
Siebrand Mazeland
a2deece649
Consistent casing for addHTML()
2008-11-06 22:20:29 +00:00
Niklas Laxström
3fdce00db1
* (bug 15634) Add The Enclosure/Header Type "none"
2008-09-28 15:30:45 +00:00
Niklas Laxström
79697ffd83
* Trim only preceeding newlines, not all whitespace
...
* Support for the new GESHI_HEADER_PRE_VALID in geshi 1.0.8
* Strict Standards: Non-static method SyntaxHighlight_GeSHi::validHighlightRange() should not be called statically
2008-07-11 18:12:48 +00:00
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