That's exactly the nudge I was looking for. Turns out Komodo (my editor of preference) has a nice "Print to HTML file..." function that prints the code exactly as I'm used to seeing it with the syntax highlighting from Komodo and line numbers too boot.