Help:Syntax Highlighting: Difference between revisions

Updated
(Removed xfeeds tag)
(Updated)
Line 1:
This wiki supports syntax highlighting in code examples using the [http://sourceforge.net/projects/geshi/ GeSHi] project, at(version thenumber time of writing this versionshown 1.0.7.22below).
 
(''FIXME'': How can one find out which version is currently really installed? [[Special:Version]] doesn't seem to list it).
 
At the moment, the wiki is in transition from old style to new style highlighting; old style highlighting will still be valid for some time.
Line 10 ⟶ 8:
 
<pre>
<code lang="C" c>
int main (int argc, char* argv[])
{
return 0;
}
</codelang>
</pre>
 
looks like
 
<code lang="C" c>
int main (int argc, char* argv[])
{
return 0;
}
</codelang>
 
A list of supported languages, and their corresponding PHP files for GeSHi, can be found here:
http://geshi.svn.sourceforge.net/viewvc/geshi/tags/RELEASE_1_0_7_22/geshi-1.0.X/src/geshi/ (change version number to match the one below).
 
Ideally, one should also use the &lt;code&gt;-tags with an appropriate lang argumenttags for languages that are not yet supported, because that will avoid additional editing if these languages will become supported in a future release of GeSHi.
 
It's in principle possible to write additional PHP files for unsupported languages and include them. Please contact one of the administrators for details.
Line 56 ⟶ 54:
</c>
 
<lang list></lang>
The available tags are (from [[Special:Version]]):
 
<nowiki>
<actionscript-french>, <actionscript>, <ada>, <apache>, <applescript>, <asm>, <asp>, <bash>, <blitzbasic>, <caddcl>, <cadlisp>, <c_mac>, <c>, <cpp>, <csharp>, <css>, <delphi>, <diff>, <dos>, <d>, <eiffel>, <freebasic>, <gml>, <html4strict>, <ini>, <inno>, <java>, <javascript>, <lisp>, <lua>, <matlab>, <mpasm>, <mysql>, <nsis>, <objc>, <ocaml-brief>, <ocaml>, <oobas>, <oracle8>, <pascal>, <perl>, <php-brief>, <php>, <python>, <qbasic>, <ruby>, <scheme>, <sdlbasic>, <smarty>, <sql>, <vbnet>, <vb>, <vhdl>, <visualfoxpro>, <xml>
</nowiki>
Anonymous user