Some issues came along while upgrading to Snow Leopard. I noticed that some file types didn’t work anymore in Quicklook. Previewing my code in Quicklook really did speed up my workflow! The solution for previewing files of any programming language in Quicklook is rather simple.
First determine which content type UTI the file uses. This will do the trick. Open terminal and type: qlmanage -d 4 -p path/to/file

Now scroll down, here you’ll see some further details, like which generator the file uses and what the content type UTI of this file is. Just copy the content type for now.
TextMate is my favorite simple text editor. To make this work you need to have a copy of TextMate installed. This tiny application handles the syntax highliting of your file extension. Now you have TextMate installed, download the TextMate Quicklook generator. By default this generator includes only some default programming languages like php,C++ and so on.. Copy and paste TMQuicklook.qlgenerator in /Library/QuickLook/ or ~/Library/QuickLook/. Open the package content of that generator

Open Info.plist in any text editor and add the content type that you’ve copied in your terminal.

Now reset your Quicklook generators, terminal: qlmanage -r and off you go!