MediaWiki
From Marketing Wiki
Contents |
Clean URLs
From: [Instructions for clean URLs]
This assumes that your wiki is located in a place like example.com/wiki/. Put this in an .htaccess file in the root of your domain:
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^wiki/(.*)$ wiki/index.php?title=$1 [PT,L,QSA]
In ~/web_root/wiki/LocalSettings.php add these lines:
$wgServer = "http://www.domain.com"; $wgArticlePath = "/wiki/$1";
Add Code Highlighting (Geshi)
See GeSHiHighlight.
- Download Geshi and put geshi.php and the geshi directory in your /extensions folder
- Put this code in your extensions folder
- Add the following line to LocalSettings.php:
include("extensions/GeSHiHighlight.php");
Geshi Usage
Surround code with tags from the following language array:
# $langArray = array("actionscript","ada","apache","asm","asp","bash", # "caddcl","cadlisp","c","cpp","css","delphi", # "html4strict","java","javascript","lisp", "lua", # "nsis","oobas","pascal","perl","php-brief","php", # "python","qbasic","sql","vb","visualfoxpro","xml");
For example, to highlight a section of PHP code, use:
<php>some code here</php>
