prezto/modules/syntax-highlighting
Chauncey Garrett 0756ac5464 Merge branch 'master' of https://github.com/sorin-ionescu/prezto
* 'master' of https://github.com/sorin-ionescu/prezto: (63 commits)
  Support $PYTHONUSERBASE per PEP 370
  Create a default tmux session only when none defined in tmux.conf
  Fix git-info added/deleted count formatting typo
  [Fix #543] Do not set tmux destroy-unattached
  Simplify multiplexer auto-start tests
  Inform the user to load ruby as late as possible when using RVM
  [Fix #551] Rename tmux auto-start session
  Fix a test operator bug introduced in e5a0e33
  [Fix #541] Do not auto-load screen/tmux inside of Emacs/Vim
  Disable glob for bower
  Prefix rarely used osx functions
  Add functions to display and delete osx download history
  Update osx alias descriptions
  Make osx functions autoloadable
  Cast AppleScript paths to text
  Add capability to browse man pages in Dash.app
  Remove Bwana.app support
  Add double slash after Bwana.app's man protocol
  [Fix #361] Load chruby when found
  [Fix #535] Set Pacman frontend to 'pacman' when none set
  ...
2014-04-14 13:47:12 -05:00
..
external@5320f1e18d Update syntax highlighting module 2014-04-14 00:00:56 -05:00
init.zsh Stop module loading when external code fails to source 2013-08-27 22:22:55 -04:00
README.md [#52] Add zstyles to configure syntax-highlighting 2013-04-26 19:47:07 -04:00

Syntax Highlighting

Integrates zsh-syntax-highlighting into Prezto.

This module should be loaded second to last, where last is the prompt module, unless used in conjuncture with the history-substring-search module where it must be loaded before it.

Contributors

New features and bug fixes should be submitted to the zsh-syntax-highlighting project according to its rules and regulations. This module will be synchronized against it.

Settings

Highlighting

To enable highlighting for this module only, add the following line to zpreztorc:

zstyle ':prezto:module:syntax-highlighting' color 'yes'

Highlighters

Syntax highlighting is accomplished by pluggable highlighters. This module enables the main, brackets, and cursor highlighters by default.

To enable all highlighters, add the following to zpreztorc:

zstyle ':prezto:module:syntax-highlighting' highlighters \
  'main' \
  'brackets' \
  'pattern' \
  'cursor' \
  'root'

Highlighting Styles

Each syntax highlighter defines styles used to highlight tokens.

To highlight, for example, builtins, commands, and functions in blue instead of green, add the following to zpreztorc:

zstyle ':prezto:module:syntax-highlighting' styles \
  'builtin' 'bg=blue' \
  'command' 'bg=blue' \
  'function' 'bg=blue'

Authors

The authors of this module should be contacted via the issue tracker.