mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-09-23 10:22:54 +00:00
Show line numbers on Module pages
Bug: T270991 Depends-On: Ic5d5c341687e965804cb33da07dda23913718ff5 Change-Id: Ifdc2f1527435140caec86dbda68dc73e392a18a9
This commit is contained in:
parent
16f2db8987
commit
68191f337c
|
@ -147,7 +147,7 @@ class ScribuntoContent extends TextContent {
|
|||
global $wgScribuntoUseGeSHi;
|
||||
$language = $engine->getGeSHiLanguage();
|
||||
if ( $wgScribuntoUseGeSHi && class_exists( SyntaxHighlight::class ) && $language ) {
|
||||
$status = SyntaxHighlight::highlight( $text, $language );
|
||||
$status = SyntaxHighlight::highlight( $text, $language, [ 'line' => true ] );
|
||||
if ( $status->isGood() ) {
|
||||
// @todo replace addModuleStyles line with the appropriate call on
|
||||
// SyntaxHighlight once one is created
|
||||
|
|
Loading…
Reference in a new issue