mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-15 02:24:07 +00:00
Added a class to the wrapper to allow site CSS to re-add the dashed borders on wikis that want them.
This commit is contained in:
parent
ae726406e2
commit
b424069389
|
@ -86,9 +86,9 @@ class SyntaxHighlight_GeSHi {
|
||||||
// Register CSS
|
// Register CSS
|
||||||
$parser->mOutput->addHeadItem( self::buildHeadItem( $geshi ), "source-{$lang}" );
|
$parser->mOutput->addHeadItem( self::buildHeadItem( $geshi ), "source-{$lang}" );
|
||||||
if ( $enclose === GESHI_HEADER_NONE ) {
|
if ( $enclose === GESHI_HEADER_NONE ) {
|
||||||
$out = '<span class="'.$lang.' source-'.$lang.'"> '.$out . '</span>';
|
$out = '<span class="mw-geshi '.$lang.' source-'.$lang.'"> '.$out . '</span>';
|
||||||
} else {
|
} else {
|
||||||
$out = '<div dir="ltr" style="text-align: left;">' . $out . '</div>';
|
$out = '<div dir="ltr" class="mw-geshi" style="text-align: left;">' . $out . '</div>';
|
||||||
}
|
}
|
||||||
wfProfileOut( __METHOD__ );
|
wfProfileOut( __METHOD__ );
|
||||||
return $out;
|
return $out;
|
||||||
|
|
Loading…
Reference in a new issue