morganestes
7/12/2017 - 6:14 PM

Custom settings for the syntax highlighting quick look package QLColorCode

Custom settings for the syntax highlighting quick look package QLColorCode

My customizations for QLColorCode

See https://github.com/anthonygelibert/QLColorCode for details.

Installation

Semi-automatic

  1. Download QLColorCode.plist
  2. Download qlcolorcode-config.sh to the same directory and run it

More hands-on

  1. Download QLColorCode.plist
  2. Install the highlight package with Homebrew: brew install highlight
  3. Install the QLColorCode package with Homebrew Cask: brew cask install qlcolorcode
  4. Install Source Code Pro font: brew cask install font-source-code-pro
  5. Run defaults import org.n8gray.QLColorCode /path/to/QLColorCode.plist

The Info.plist file lives in ~/Library/QuickLook/QLColorCode.qlgenerator/Contents/Info.plist and contains extra entries for JavaScript, JSON, and PHP.