With about an hour’s worth of effort, I added the ability to display code using Ext and GESHI. My goal was not to have to hack wordpress to accept javascript, and take full use of Ext’s updater function. Instead of embedding the code in wordpress, I simply put a custom xhtml tag like below. Ext DomQuery finds the tags, and uses them to append panels to display the code. Geshi simply formats it on the server side. I found this to be much faster than any javascript syntax highlighter. I’m going to look into filling the toolbar with download and copy to clipboard functions (using flash).

Example Html:
< tdgicode source=”sourceTo/js.js” paneltitle=”Test 1 Title” />

Example Javascript:

Like what you've seen or read? Use the below links to share and enjoy.
  • Twitter
  • Digg
  • del.icio.us
  • Technorati
  • Yahoo! Buzz
  • Facebook
  • LinkedIn
  • Mixx
  • Google Bookmarks
  • Tumblr
  • Blogplay
  • Add to favorites
  • DZone
  • FriendFeed
  • Live
  • PDF
  • Propeller
  • Reddit
  • Suggest to Techmeme via Twitter
  • Slashdot
  • StumbleUpon
  • email
  • Print
  • Sphinn