Extension:Code/zh

{{TNT|Extension
 * name     = Code
 * status   = beta
 * type1    = tag
 * type2    =
 * hook1    = ParserFirstCallInit
 * username = Gri6507
 * author   = Paul Grinberg
 * image    =
 * license  = GPL
 * version  = 0.9
 * update   = 2011-07-18
 * mediawiki = 1.17+ (更早版本)
 * download = 参见下方
 * needs-updatephp = No
 * readme   =
 * changelog = 阅读变更日志
 * description = Provides a syntax highligher using GeSHi
 * parameters= * $language
 * $showLineNumbers
 * $showDownloadLink
 * $tabwidth
 * $source
 * rights   =
 * example  =
 * tags     = *

第二步
将以下文本加入至LocalSettings.php：

用法
The extension has the following usage:

where options are: lang='s'      This is the language type that explains how to highlight the code. Default is 'text'. See GeSHi for full list of supported syntaxes linenumbers   Turn on line numbers for each line in your code download      Turn on the "Download Code" link for this block of your code tabwidth='n'  How many spaces does a TAB represent fileurl='s'   Instead of processing the code provided between the tags, process the code at specified URL

修订

 * v0.9 - 2011-07-18 - Updated for MediaWiki 1.17+
 * v0.8 - 2010-04-29 - initial release on MW.

mash-up RawFile/Geshi/CodeFile
I'm working on Extension:RawCodeFile it's a mix of 2 extensions, including this one, updated. It works under 1.25+ if geshi is installed.