A partial archive of https://discourse-mediawiki.wmflabs.org as of Saturday May 21, 2022.

Syntax Highlighter extension now working

LuderaEco

Hi all.
I have a problem with the Syntax Highlighter extension.
I’m loading the extension in LocalSettings and it appears in the Version special page.

But when I copy the same code as the examples with tags, the page is added to the error category, and no color appears.

I copied so I have no errors in the code. This is working because the tag dissapears but no color.

The website is uploaded in a paid hosting. I tried installing the extension myself for my wiki version and I have the same problem.

RazeSoldier

Are you install python3 in your system?

Tgr

Check in the browser’s web developer toolbar whether CSS files are loading correctly.

LuderaEco

Seems loaded. The text is inside a < pre > section. Over it, there’s a highlight style that gives it a black color. But the code has no style tags inside of it.

Check it out here!
http://wiki.cgunderworld.com/index.php/Python_API_(Maya)#Ejemplo_de_Plugin

LuderaEco

The server is not mine, I paid for it.

RazeSoldier

You can use debug log to show more information. Then reaccess the page that included , and check the debug log. If you find a statement like “python3: No such file or directory”, then your server does not have python3.

RazeSoldier

SyntaxHighlight extension is not out of the box, since most systems do not install python3 by default, but python2 default.