Friday, May 15, 2009

Now I can highlight code snippets!

Having recently lost my thumbdrive, I've decided to store more ideas and interesting projects in a more locatable place. At least for now...

I got the syntax highlighting from this site. It details how to edit the layout template.

Here is a sample of code, just to try it out:
def parseStatsFile():
   """Parse the stats file, or create it initially"""
   try:
       statsFile = open(fileLoc + "stats.log", "r")
       for s in statsFile:
           statsTemp = s.strip("\n").split("=")


I really hope that I am able to find my thumbdrive. I only managed to back up a couple of important files, before I lost it right after that.