Topic on Extension talk:SyntaxHighlight

Showing line numbers to those reading Module: pages

4
Summary by Jdforrester (WMF)

Feature is new in the forthcoming 1.36 release.

Peculiar Investor (talkcontribs)

What setting or CSS is required to make line numbers appear on Module pages such as Module:Bananas or Wikipedia's Module:Example?

Our wiki is running 1.35.1, with up-to-date versions of Extension:Scribunto and Extension:SyntaxHighlight.

Our wiki has imported Wikipedia's Module:Example and the code is syntax highlighted as expected but there are no line numbers. Our MediaWiki:Common.css is copied from Wikipedia. We are trying to figure out what setting or CSS is required so that line numbering appears. Thanks in advance.

Jdforrester (WMF) (talkcontribs)

It's new code from last month. It will be released as part of the 1.36 branch process later this year, sorry.

Peculiar Investor (talkcontribs)

@Jdforrester (WMF) Thanks. Now I can stop searching. The good news is I've learned quite a bit about the internals.

Peculiar Investor (talkcontribs)

Re-opening rather than starting new topic.

We have now updated the wiki to MediaWiki 1.39.1 and we still have the same issue, or actually a bigger one as none of the SyntaxHighlight functionality displays.

The wiki is running on shared hosting at a major hosting provided. python3 is installed as an "add-on" functionality.

I have tried the steps listed in the Troubleshooting section without success. I finally set $wgDebugToolbar = true; which reveals the pygmentize cannot find python3.

That's because the hosting provider only has python version 2.7.5. The python3 "add-on" installation is not on the Apache or PHP path.

Is there any additional configuration steps similar to $wgPygmentizePath = that could be used to provide the python3 path?

Reply to "Showing line numbers to those reading Module: pages"