Skip to content

brinsche/QLSyntaxHighlight

Repository files navigation

QLSyntaxHighlight

Syntax Highlighting/Plain Text Quick Look plugin written in Rust

Work in progress!

  • tries to open most plaintext files
  • no max file size
  • no highlighting for natively supported filetypes
  • doesn't generate thumbnails

Installation

  • Download from Releases
  • Move the downloaded .qlgenerator file to ~/Library/QuickLook
  • Run qlmanage -r

Configuration

Setting the font (default is Menlo):

defaults write de.bastianrinsche.QLSyntaxHighlight fontFamily 'Menlo, monospace'

Setting the font size (default is 11):

defaults write de.bastianrinsche.QLSyntaxHighlight fontSize 11

Setting a theme (default is an included xcode-like theme, set to empty string to go back):

// Single quote for theme names with spaces, Double quote for spaces + parentheses
defaults write de.bastianrinsche.QLSyntaxHighlight theme "'Solarized (dark)'" 

Available themes are the default theme and these.

Adding additional themes. Set to absolute path of directory containing .tmTheme files:

defaults write de.bastianrinsche.QLSyntaxHighlight themeDirectory '/path/to/themes'

Adding addiontal syntaxes. Set to absolute path of directory containing .sublime-syntax files:

defaults write de.bastianrinsche.QLSyntaxHighlight syntaxDirectory '/path/to/syntaxes'

screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published