Testing pygments
Originally posted
· 1 min read
This is a test post to see experiment with the code hightlighting output from pygments.org (as recommended by a couple of commenters on my previous post). Pygments produces HTML with CSS-based styling, so I have added a bunch of new styles to my blogger template. And I am including as a sample the same Python code posted earlier with the alternative syntax highlighting tool.
def main(self, *m3ufilenames):
self.startRSS()
self.generateChannelInfo()
for line in fileinput.input(m3ufilenames):
mp3filename = line.strip()
if not mp3filename or mp3filename.startswith('#'):
continue
self.generateItem(mp3filename)
self.endRSS()
return
So, let me know what you think of the 2 methods, and which looks better.