This plugin is a syntax highlighter for source code using GeSHi.
| Author: | Ben Lobaugh (profile at wordpress.org) |
| WordPress version required: | 2.0 |
| WordPress version tested: | 3.4.2 |
| Plugin version: | 1.9 |
| Added to WordPress repository: | 07-09-2007 |
| Last updated: | 18-06-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | http://wordpress.org/extend/plugins/code-high... |
| Total downloads: | 12 350 |
| Active installs: | 10+ |
![]() Click to start download |
|
This plugin is a syntax highlighter for source code. It uses GeSHi as fontifier engine.
Usage
- Put the code snippet in a
<code>tag. - Add the lang attribute to the code tag like the following.
<code lang="php"> - Add the lineno attribute to the
<code>tag after the lang tag if you wish to start at a line other than 1.<code lang="cpp" lineno="42"> - If you do not add lang attribute, the
<code>tag is handled normally. - If you want to have border, add the style like the following to your .css file.
code { border: 1px dotted #ccc; padding: 0.2em 0.5em; } - You can use following languages in lang.
abap, actionscript, ada, apache, applescript, asm, asp, autoit, bash, blitzbasic, bnf, c, c_mac, caddcl, cadlisp, cfdg, cfm, cpp-qt, cpp, csharp, css-gen, css, d, delphi, diff, div, dos, dot, eiffel, fortran, freebasic, genero, gml, groovy, haskell, html4strict, idl, ini, inno, io, java, java5, javascript, latex, lisp, lua, m68k, matlab, mirc, mpasm, mysql, nsis, objc, ocaml-brief, ocaml, oobas, oracle8, pascal, per, perl, php-brief, php, plsql, python, qbasic, rails, reg, robots, ruby, sas, scheme, sdlbasic, smalltalk, smarty, sql, tcl, text, thinbasic, tsql, vb, vbnet, vhdl, visualfoxpro, winbatch, xml, xpp, z80
Note: Version 1.9 adds support for <code> tags, however to ensure backwards compatibility support for the <pre> tag will not be removed.
ChangeLog
