Code Colors - Quicklook Preview plug-in is a 100% Swift, lightning-fast Quicklook Extension Plug-in for macOS.
It's a work in progress using native syntax highlighting , no JavaScript, no WebKit , no RTF, no external dependencies.
Lighting-fast means it's there before you hear the sound of the spacebar.
- Any File Types:
.swift
,.py
,.yaml
,.xml
,.json
, as well as files without extensions. --> please tell me what you need. - Syntax Highlighting: Already handles various expressions and symbols --> please tell me what else you need.
- Lazy Loading: Load line per line for immediate viewing, stops when view disapears.
- Pure Swift: only the code that is necessary: the minimum.
- Main-Thread Offloading: All file loading and processing are done off the main thread, ensuring system remains responsive.
- As safe as your file: Sandboxed, hardened, notarized, doesn't require internet or any permission whatsoever, doesn't run the files, but iterates through them as utf8 text.
- No File Associations: Doesn't replace the default app for opening files, and text is selectable accross lines for copy/pasting
Unzip, move somewhere such as /Applications, run once, quit the app: macOS should acknowledge the Quicklook Extension . Uninstall: as the extension stays within the app, remove the app to remove the extension.
I made the app because I was straining my eyes quicklooking python scripts, and I don't like to wait for Xcode to load.
- custom colors, color schemes
- Chunks instead of lines for lazy loading
- line numbering
- Editing is very possible to implement however that might go beyond the scope, if so, has to be optional and extra care for overwrite.