Formatting Code for WordPress

I have a number of F# code examples which I would like to post here; however, I haven’t yet figured out how to properly format my code for display on WordPress. I know that there must be an easy way for me to go from VisualStudio (or emacs, IntelliJ, etc) to WordPress, but I haven’t found it yet.

So in the meantime I will list some code examples which I hope to put up here in the future:

  • Fast poker hand scoring in F#, as inspired by Cactus Kev’s C Poker Hand Evaluator
  • Perfect-hashing (used in poker hand ranking)
  • Segmenting Chinese text into individual words
  • Spidering Yahoo! Finance in F#
  • Generating Sudoku Puzzles (and then showing them in Excel so Kejia can play them at work!)
  • Determining when people are voting strategically (inspired by The Art of Political Manipulation by William Riker).

About this entry