Difference between revisions of "Geïnstalleerde Mediawiki Extensies"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
[Neem op in je][Insert into your] LocalSettingsExtra.php: | [Neem op in je][Insert into your] LocalSettingsExtra.php: | ||
require_once( "{$IP}/extensions/ASHighlight/ashighlight.php" ); | require_once( "{$IP}/extensions/ASHighlight/ashighlight.php" ); | ||
+ | |||
+ | == Usage == | ||
+ | |||
+ | Use a '<tt>source</tt>' HTML-style tag in your wiki code, and give it a '<tt>lang</tt>' attribute that matches the standard '''file extension''' for your source code, eg 'c' for C code, 'cpp' for C++ code, 'py' for Python, etc. For example: | ||
+ | |||
+ | <table border="0" cellpadding="2" cellspacing="0"> | ||
+ | <tr> | ||
+ | <th width=50%>What it looks like</th> | ||
+ | <th width=50%>What you type</th> | ||
+ | </tr> | ||
+ | <tr valign="top"> | ||
+ | <td> | ||
+ | <source lang="c"> | ||
+ | while(1){ | ||
+ | i++; | ||
+ | } | ||
+ | </source> | ||
+ | </td> | ||
+ | <td> | ||
+ | <nowiki><source lang="c"> | ||
+ | while(1){ | ||
+ | i++; | ||
+ | } | ||
+ | </source></nowiki> | ||
+ | </td> | ||
+ | </tr> | ||
+ | </table> | ||
=== CategoryTree === | === CategoryTree === |
Revision as of 21:23, 14 January 2008
Hier een overzicht van alle extensies/aanpassingen die we op deze wiki gebruiken:
ASHighlight
link: ASHighlight
Insert into your LocalSettingsExtra.php:
require_once( "{$IP}/extensions/ASHighlight/ashighlight.php" );
Usage
Use a 'source' HTML-style tag in your wiki code, and give it a 'lang' attribute that matches the standard file extension for your source code, eg 'c' for C code, 'cpp' for C++ code, 'py' for Python, etc. For example:
What it looks like | What you type |
---|---|
while(1){
i++;
}
|
<source lang="c"> while(1){ i++; } </source> |
CategoryTree
link: CategoryTree
Insert into your LocalSettingsExtra.php:
$wgUseAjax = true; require_once( 'extensions/CategoryTree/CategoryTree.php' );
Cite
link: Cite/Cite
Insert into your LocalSettingsExtra.php:
require_once( $IP.'/extensions/Cite/Cite.php' );
Collapsible tables
link: [1]
FCKeditor
Graphviz.php
LatexDoc
latexmk
OpenID
OpenWetWare:Toggle
link: Toggle items
PdfExport
RawHTML.php
Renameuser
SecureLoginPage.php
SpecialImportUsers.php
SpecialNoCategoryContributions.php
WhoIsWatching
WikiArticleFeeds
link: WikiArticleFeeds