Plugin Directory

Code Snippet

Code Snippet is WordPress plugin for displaying code with highlighting in blog posts using the GeSHi engine.

Download Version 2.1.5

Usage

The original author recommended always wrapping your code in a <pre> tag; however, most times you generally don't need to. To use it, simply surround your code with as such and specify your language type:

[code lang="c"] int main(int argc, char** argv) { return 0; } [/code]

And the result is:

int main(int argc, char** argv) { return 0; }

Supported Languages

The following is a list of currently supported languages:

  • actionscript-french
  • actionscript
  • ada
  • apache
  • applescript
  • asm
  • asp
  • bash
  • caddcl
  • cadlisp
  • c_mac
  • c
  • cpp
  • csharp
  • css-gen
  • css
  • delphi
  • diff
  • div
  • dos
  • d
  • eiffel
  • freebasic
  • gml
  • html4strict
  • ini
  • inno
  • java
  • javascript
  • lisp
  • lua
  • matlab
  • mpasm
  • nsis
  • objc
  • oobas
  • oracle8
  • pascal
  • perl
  • php-brief
  • php
  • python
  • qbasic
  • sdlbasic
  • smarty
  • sql
  • vbnet
  • vb
  • vhdl
  • visualfoxpro
  • xml

Requires: 2.0 or higher
Compatible up to: 2.8.1
Last Updated: 2009-8-3 Downloads: 19,133

Average Rating

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

Compatibility

+
=
Not enough data

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

Log in to vote.

0,1,0
100,2,2
25,4,1
0,1,0
80,5,4
100,1,1
0,1,0