Help:Source Code
[edit] Embedding Source Code
It is possible to include properly formatted and colorified source code in an article. To do this, include your source code between the <source> tag. It is also required to pass the parameter lang to the source tag to identify the language of the source code. A failure to do so will result in the following error message being printed:
You need to specify a language like this: <source lang="html">...</source> Supported languages for syntax highlighting:
actionscript, actionscript-french, ada, apache, applescript, asm, asp, bash, blitzbasic, c, c_mac, caddcl, cadlisp, cpp, csharp, css, d, delphi, diff, div, dos, eiffel, freebasic, gml, html4strict, ini, inno, java, javascript, lisp, lua, matlab, mpasm, mysql, nsis, objc, ocaml, ocaml-brief, oobas, oracle8, pascal, perl, php, php-brief, python, qbasic, ruby, scheme, sdlbasic, smarty, sql, vb, vbnet, vhdl, visualfoxpro, xml
[edit] An Example
You type
<source lang="php"> <?php echo phpinfo(); ?> </source>
You see
<?php echo phpinfo(); ?>
