QuickLook plugin for source code with syntax highlighting.

QLColorCode is the classic, ultra-lightweight **macOS Quick Look plugin (.qlgenerator) designed to preview source code with syntax highlighting inside Finder using the GNU Highlight** library. Distributed as a streamlined bundle weighing only a few megabytes, QLColorCode brings instant code coloring to developers via simple defaults customization.
QLColorCode operates through structured, deterministic execution stages:
.qlgenerator Plugin**: Registers lightweight source code Quick Look rendering into ~/Library/QuickLook for minimal overhead.highlight engine to colorize C, C++, Swift, Python, Go, Java, and shell scripts on Spacebar preview.defaults write.qlmanage sandbox only during active previews..qlgenerator Architecture**: Runs purely inside macOS Quick Look processes with zero menu bar icons or idle RAM consumption.defaults Configuration**: Configures fonts (Menlo, JetBrains Mono), font sizes, encodings (UTF-8, UTF-16), and color themes cleanly via terminal commands.~/Library/QuickLook/QLColorCode.qlgenerator| Specification | Minimum Requirement | Recommended Specification |
|---|---|---|
| Operating System | macOS (Universal Apple Silicon & Intel) | Latest stable release build |
| Processor Architecture | 4-Core x86_64 or Apple Silicon M1 | 8-Core Apple Silicon / Core i7+ |
| Memory (RAM) | 4 GB Unified Memory | 16 GB+ High-Speed RAM |
| Disk Space | 1 GB free SSD storage | 5 GB+ free SSD storage |
brew install --cask qlcolorcode
Or download QLColorCode.qlgenerator.zip, extract QLColorCode.qlgenerator, and drop it inside ~/Library/QuickLook/, then run qlmanage -r.
git clone https://github.com/anthonygelibert/QLColorCode.git cd QLColorCode # Ensure Boost headers are installed (brew install boost) open QLColorCode.xcodeproj
QLColorCode.qlgenerator into ~/Library/QuickLook (create directory if absent).qlmanage -r in Terminal to reload Finder plugin bindings.defaults write org.n8gray.QLColorCode font Monaco..qlgenerator plugins.**xattr -d com.apple.quarantine ~/Library/QuickLook/QLColorCode.qlgenerator is cleared on supported macOS versions, or pair with modern QuickLook App Extensions (Glance or Syntax Highlight) on macOS 15+.100% Free & Open-Source native desktop software. Star the repository to support development.