Plugin Directory

CodeHighlighter

This plugin is a syntax highlighter for source code using GeSHi.

Download Version 1.8

This plugin is a syntax highlighter for source code. It uses GeSHi as fontifier engine.

Usage

  1. Put the code snippet to pre tag.
  2. Add the lang attribute to the pre tag like the following. <pre lang="cpp">
  3. Add the lineno attribute to the pre tag after the lang tag like the following if you want to display line numbers. The number in the lineno tag becomes a start line number. There is no default value for the start line number. So you must supply the value to the lineno tag. <pre lang="cpp" lineno="1">
  4. If you do not add lang attribute, the pre tag is handled normally.
  5. If you want to have border, add the style like the following to your .css file. pre { border: 1px dotted #ccc; padding: 0.2em 0.5em; }
  6. 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

Preview

Author: iwongu

Requires: 2.0 or higher
Compatible up to: 2.5
Last Updated: 2008-3-9 Downloads: 6,968

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(7 ratings)

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

Log in to vote.

100,1,1
100,1,1
100,1,1