mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
docs copyedit: Rewrap to 80 columns, part 2.
This commit is contained in:
parent
3bedd8571e
commit
3f163a2fd4
9 changed files with 37 additions and 21 deletions
|
|
@ -14,7 +14,8 @@ Syntax highlighting is done by pluggable highlighters:
|
|||
How to activate highlighters
|
||||
----------------------------
|
||||
|
||||
To activate an highlighter, add it to the `ZSH_HIGHLIGHT_HIGHLIGHTERS` array in `~/.zshrc`, for example:
|
||||
To activate an highlighter, add it to the `ZSH_HIGHLIGHT_HIGHLIGHTERS` array in
|
||||
`~/.zshrc`, for example:
|
||||
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
|
||||
|
||||
|
|
@ -32,7 +33,8 @@ How to implement a new highlighter
|
|||
|
||||
To create your own `myhighlighter` highlighter:
|
||||
|
||||
* Create your script at `highlighters/${myhighlighter}/${myhighlighter}-highlighter.zsh`.
|
||||
* Create your script at
|
||||
`highlighters/${myhighlighter}/${myhighlighter}-highlighter.zsh`.
|
||||
|
||||
* Implement the `_zsh_highlight_myhighlighter_highlighter_predicate` function.
|
||||
This function must return 0 when the highlighter needs to be called and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue