How to enable the SyntaxHighlight extension after installed?

我们两清 提交于 2019-12-24 06:24:10

问题


I have a fresh Mediawiki (v1.33) installed into fresh UBUNTU 18 LTS... The ''SyntaxHighlight'' extension is not working, the effect is like a code into <pre> tags.

At mediawiki.org/list there are no clues. I used the syntax_highlighting checkbox during Mediawiki installation, and I can see it at Especial:Version page as "SyntaxHighlight 2.0", so, it is installed... But is not working.


NOTES AND TESTS

Notes.

  • It is a corporative Wiki, no way to offer public URL... But it is a fresh, standard and controlled installation, all reproductive and standard.

  • The Wiki was configured with skin "Vector" and language "Brazilian Portuguese".

Tests.

  1. Usage tests of mediawiki.org/Extension:SyntaxHighlight, the Python example.

    1.1. With tag <syntaxhighlight>. Result: no highlight, same as <pre>.

    1.2. With tag <source>. Result: no highlight, same as <pre>.

  2. PHP example, fragment from wikipedia.org/PHP Syntax.

    2.1. With tag <syntaxhighlight>. Result: no highlight, same as <pre>.

    2.2. With tag <source>. Result: no highlight, same as <pre>.

The code fragments used in the tests:

def quickSort(arr):
    less = []
    pivotList = []
    more = []
    if len(arr) <= 1:
        return arr
    else:
        pass
<title>PHP "Hello, World!" program</title>
<?php echo '<p>Hello World</p>'; ?>

NOTE2: IT IS NOT A DUPLICATE

This question is similar but not same as this other one: here is about the basic "Hello World" of the extension, for any lang, and the other is about an specific lang installation. We need to solver first here, them, solve the other.

来源:https://stackoverflow.com/questions/57515213/how-to-enable-the-syntaxhighlight-extension-after-installed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!