Converting Python source to HTML
Originally posted
· 1 min read
For my PyMOTW series, I have found that I want to convert a lot of python source code to HTML. In a perfect world it would be easy for me to produce pretty XML/HTML and use CSS, but it is not obvious how to use CSS from Blogger. Instead, I am using a CLI app based on this ASPN recipe which produces HTML snippets that I can paste directly into a new blog post. The output HTML is more verbose than I wanted, but I like the fact that it has no external dependencies.
If you have any alternatives, I would appreciate hearing about them.