Cain Manor

Your Guide To All Things Cain™

WP-Syntax

Let’s you use cor­rect syn­tax on your code snip­pets, or rather — keeps Word­Press from fuck­ing up your code.

Down­load from here. To use, wrap your code with

<pre lang="LANGUAGE" line="1"> and </pre>

line=“1” is optional. This is based on syn­tax high­light­ing from GeSHI. You can visit their page for a full list of sup­ported lan­guages. The ones I care about are — or rather, may care about in the future:

apache
apple­script
autoit
bash
c
css
div
dos
java
javascript
mysql
perl
php
python
rails
reg
ruby
sql
tcl
text
vb
vbnet
xml

Comments are closed.