But there are at least two other WordPress plugins that add Pygments syntax highlighting. Why make another one?
- This plugin lets you choose whether to use an external webservice or run Pygments on your own server.
- This plugin caches its results, so that the markup only has to be generated one time.
The plugin adds a shortcode that you can use to bracket blocks of code in your blog posts. The rest is automagic.
[code language="php"]<?php echo 'hello, world!';?>[/code]
<?php echo 'hello, world!';?>