Source Code Highlighting is a Quick Look generator plugin that provides syntax coloring for source code files. It uses the GeSHi Generic Syntax Highlighter engine, which provides support for many languages. Additionally, the generator will display property lists (plists) in XML format, regardless of its storage format.
The generator currently has a maximum file size limit of 512KB as an attempt to avoid long processing times (set in the source code). The generator uses the UTI (Uniform Type Identifier) of each source file to determine which syntax highlighting to use. This is configured in “UTI to GeSHi Type Mapping.plist”, contained in the binary bundle and the source distribution.
Source Code Highlighting requires Mac OS X 10.5 Leopard. Place GeSHi Source Code Highlighter.qlgenerator in /Library/QuickLook/, then reset Quick Look by either logging out or by running qlmanage -r.
The source code is ready to build. The Xcode project is configured to decompress GeSHi from its compressed archive before compiling. Please send any contributions to Jonathon Mah.
Source Code Highlighting is licensed under the BSD license, as follows:
Copyright © 2007-2008, Playhaus All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
This software is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.