Topic on Project:Support desk

Code php like page in mediawiki

4
Centinela77 1982 (talkcontribs)

Hello

I would like to put in a page a code php like:

<?php

echo "hello world"

?>

But I can do it. I try to use Extension:RawCodeFile but mediawiki say me that geshi.php doesn't exist, but I put it in the right directory.

Any ideas?

Thanks

88.130.65.86 (talkcontribs)

Which version of MediaWiki are you using?

I don't know, how the RawCodeFile extension is working, but for MediaWiki 1.26, the GeSHi extension has undergone a major rewrite. Especially, it in fact is no longer using the GeSHi highlighter, but Pygments. If you are using MediaWiki 1.26, this might contribute to the problem.

Jasper Deng (talkcontribs)
88.130.65.86 (talkcontribs)

GeSHi does syntax highlighting, but the RawCodeFile extension also offers a download link, which GeSHi does not have. So GeSHi is not a full replacement for RawCodeFile.

Reply to "Code php like page in mediawiki"