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#.
1 2 3 4 5 6 7 8 9 10 11 |
void StartWork() { // Create the token source. wtoken = new CancellationTokenSource(); // Set the task. task = CreateNeverEndingTask(now => DoWork(), wtoken.Token); // Start the task. Post the time. task.Post(DateTimeOffset.Now); } |
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.