Show line numbers on Module pages

Bug: T270991
Depends-On: Ic5d5c341687e965804cb33da07dda23913718ff5
Change-Id: Ifdc2f1527435140caec86dbda68dc73e392a18a9
This commit is contained in:
Ed Sanders 2021-01-01 17:57:19 +00:00 committed by jenkins-bot
parent 16f2db8987
commit 68191f337c

View file

@ -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