I have just converted the Pivot GeSHi snippet to a PivotX extension. This snippet enables you to use GeSHi, the Generic Syntax Highlighter, from within PivotX by simply setting your code inside a "geshi" block.
Visit http://extensions.pivotx.net/entry/27/geshi for more information and download.