5b90c96cd1
Stick with the following style: * Header 1 with the module name is in `lowercase`. * Other headers are in `Sentence case`. Common header names that should be consistently used are `Aliases`, `Contributing`, `Functions`, `Settings`, and `Zsh options`. * The names `Zim` and `Zsh` always appear capitalized, even in the middle of sentences. * Prefer print 'code indented with 4 spaces' instead of ```zsh print 'code fenced by lines with three back-ticks' print 'unless you want syntax highlighting' ```
21 lines
956 B
Markdown
21 lines
956 B
Markdown
syntax-highlighting
|
|
===================
|
|
|
|
Adds fish shell-like [syntax highlighting](https://github.com/zsh-users/zsh-syntax-highlighting) to your shell.
|
|
|
|
![syntax-highlighting][syntax_highlighting]
|
|
|
|
If you are also using [history-substring-search](https://github.com/zimfw/zimfw/blob/master/modules/history-substring-search/README.md),
|
|
ensure you have placed 'syntax-highlighting' before 'history-substring-search' on the second line of `zmodules` in your `.zimrc`.
|
|
|
|
.zimrc Configuration
|
|
--------------------
|
|
|
|
* `zhighlighters=(main brackets cursor)` add any highlighters you want as described [here](https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters.md#zsh-syntax-highlighting--highlighters).
|
|
|
|
Contributing
|
|
------------
|
|
|
|
Contributions should be submitted [upstream to zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting)
|
|
|
|
[syntax_highlighting]: https://i.eriner.me/zim_syntax-highlighting.gif
|