html code highlighting for wordpress
I always wondered how people managed to highlight their code in blogs and forums. First I discovered that SubEthaEdit can output your code as coloured html, but this wasn’t perfect, as I don’t usually code with it. Then I discovered the Code Snippet plugin for WordPress. All I have to do is wrap the code in [code lang="lang"]code here[/code]. You just replace the second lang with the language you’re using, e.g. bash or actionscript, etc., and it does the rest! I gotta say, the colours it marks my actionscript with aren’t the ones the Flash IDE uses, but I suspect there is a stylesheet somewhere I could use to tweek that.
Supported languages are:
- * 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
About this entry
You’re currently reading “html code highlighting for wordpress,” an entry on random()
- Published:
- 08.04.07 / 3am
- Category:
- wordpress
No comments
Jump to comment form | comments rss [?] | trackback uri [?]