brinsche / QLSyntaxHighlight

6 stars 1 forks source link

QLSyntaxHighlight

Syntax Highlighting/Plain Text Quick Look plugin written in Rust

Work in progress!

Installation

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