docs copyedit: Whitespace.
This commit is contained in:
parent
e60737d320
commit
6c033e62e9
|
@ -3,7 +3,7 @@ up to 1933de83be0bbfb41c44d182fe581ad85012b71a
|
|||
|
||||
|
||||
|
||||
# Changes in version 0.3.1
|
||||
# Changes in version 0.3.1
|
||||
|
||||
|
||||
## Added highlighting of:
|
||||
|
|
|
@ -6,6 +6,7 @@ This is the ***brackets*** highlighter, that highlights brackets, parenthesis an
|
|||
|
||||
How to activate it
|
||||
------------------
|
||||
|
||||
To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
|
||||
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=( [...] brackets)
|
||||
|
@ -13,6 +14,7 @@ To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
|
|||
|
||||
How to tweak it
|
||||
---------------
|
||||
|
||||
This highlighter defines the following styles:
|
||||
|
||||
* `bracket-error` - unmatched brackets
|
||||
|
|
|
@ -6,6 +6,7 @@ This is the ***cursor*** highlighter, that highlights the cursor.
|
|||
|
||||
How to activate it
|
||||
------------------
|
||||
|
||||
To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
|
||||
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=( [...] cursor)
|
||||
|
@ -13,6 +14,7 @@ To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
|
|||
|
||||
How to tweak it
|
||||
---------------
|
||||
|
||||
This highlighter defines the following styles:
|
||||
|
||||
* `cursor` - the style for the current cursor position
|
||||
|
|
|
@ -6,6 +6,7 @@ This is the ***line*** highlighter, that highlights the whole line.
|
|||
|
||||
How to activate it
|
||||
------------------
|
||||
|
||||
To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
|
||||
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=( [...] line)
|
||||
|
@ -13,6 +14,7 @@ To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
|
|||
|
||||
How to tweak it
|
||||
---------------
|
||||
|
||||
This highlighter defines the following styles:
|
||||
|
||||
* `line` - the style for the whole line
|
||||
|
|
|
@ -11,6 +11,7 @@ This is the ***main*** highlighter, that highlights:
|
|||
|
||||
How to activate it
|
||||
------------------
|
||||
|
||||
To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
|
||||
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=( [...] main)
|
||||
|
@ -20,6 +21,7 @@ This highlighter is active by default.
|
|||
|
||||
How to tweak it
|
||||
---------------
|
||||
|
||||
This highlighter defines the following styles:
|
||||
|
||||
* `unknown-token` - unknown tokens / errors
|
||||
|
|
|
@ -6,6 +6,7 @@ This is the ***pattern*** highlighter, that highlights user defined patterns.
|
|||
|
||||
How to activate it
|
||||
------------------
|
||||
|
||||
To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
|
||||
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=( [...] pattern)
|
||||
|
@ -13,6 +14,7 @@ To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
|
|||
|
||||
How to tweak it
|
||||
---------------
|
||||
|
||||
To use this highlighter, associate patterns with styles in the `ZSH_HIGHLIGHT_PATTERNS` array, for example in `~/.zshrc`:
|
||||
|
||||
# To have commands starting with `rm -rf` in red:
|
||||
|
|
|
@ -6,6 +6,7 @@ This is the ***root*** highlighter, that highlights the whole line if the curren
|
|||
|
||||
How to activate it
|
||||
------------------
|
||||
|
||||
To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
|
||||
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=( [...] root)
|
||||
|
@ -13,6 +14,7 @@ To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
|
|||
|
||||
How to tweak it
|
||||
---------------
|
||||
|
||||
This highlighter defines the following styles:
|
||||
|
||||
* `root` - the style for the whole line if the current user is root.
|
||||
|
|
|
@ -23,6 +23,7 @@ which is automatically cleaned up after the test exits.
|
|||
|
||||
highlighting test
|
||||
-----------------
|
||||
|
||||
[`test-highlighting.zsh`](tests/test-highlighting.zsh) tests the correctness of the highlighting. Usage:
|
||||
|
||||
zsh test-highlighting.zsh <HIGHLIGHTER NAME>
|
||||
|
@ -36,6 +37,7 @@ which will run all highlighting tests and report results in [TAP](http://testany
|
|||
|
||||
performance test
|
||||
----------------
|
||||
|
||||
[`test-perfs.zsh`](tests/test-perfs.zsh) measures the time spent doing the highlighting. Usage:
|
||||
|
||||
zsh test-perfs.zsh <HIGHLIGHTER NAME>
|
||||
|
|
Loading…
Reference in New Issue
Block a user