I’ve spent a little time trying to find a decent syntax highlighter for WordPress. Based on my craigggling, Crayon seems like a solid first choice to try out.
Here’s a quick sample of a snippet of C# I grabbed from Stack Overflow while researching some options for how I’d like to architect a signal generator in C#.
// Create the token source.
wtoken = new CancellationTokenSource();
// Set the task.
task = CreateNeverEndingTask(now => DoWork(), wtoken.Token);
// Start the task. Post the time.
Yes, this will do nicely. I was looking for a couple of whistles and a bell, but this more than meets the current sprint commitment.