WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't 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.

Code Snippet

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

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: 22,878

Ratings

3 stars
3.7 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

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