Jump to content
  • 0

Syntax Highlight does not work properly


GreatOom

Question

The syntax highlight extension "SyntaxHighlight_GeSHi" is already pre-installed in the macOS MediaWiki App (I use Bitnami). This is great.
I changed my "LocalSettings.php" file and added the line

wfLoadExtension( 'SyntaxHighlight_GeSHi' );

After a restart of the services it works only partly. This means for example

<syntaxhighlight lang="xml" line="1" style="border:3px dashed blue">
<dict>
<key>Label</key>
</dict>
</syntaxhighlight>

Shows the gray area and a dashed blue border. It does not colorize the code.

Any clue what's wrong? What did I miss?

Bildschirmfoto 2021-02-23 um 08.57.47.png

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Lack of highlighting generally indicates that the call to pygments is failing for some reason or another. You may wish to temporarily enable debug logging to better understand why this is happening. Chances are the issue lies with your choice of OS: I believe that the extension only ships a linux binary of pygments, but not a mac binary. You may need to install pygments separately and point to it via $wgPygmentsPath.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.