Code Highlighting
Just a small thing. I was trying to find a good syntax highlighter for code on this blog and another one I’m about to start. After trying a few, I settled on highlight.js from http://softwaremaniacs.org/soft/highlight/en
You basically need to simply wrap your code in <pre><code></code></pre> and it handles the rest. Here’s an example:
class ThisIsRuby
def fun
puts "This is fun!"
end
end
test = ThisIsRuby.new
puts test.fun
On a semi-related note, I’m still chasing down some nginx config related gremlins. If you see anything weird, let me know in the comments.
December 9th, 2009 at 7:05 pm #Jason Amster
Uh, why not just use embed a Gist. e.g. http://blog.jayamster.com/a-little-snippit-to-tell-if-its-unix-time-1234567890/2009/02/13
December 9th, 2009 at 7:09 pm #Patrick Tulskie
Yep. Could do that too. Probably should do that, in the spirit of social coding.