mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
Added more styles used in zle_highlight. Updated main README.md and highlighters/main/README.md.
This commit is contained in:
parent
103aecc52e
commit
ad75e32f98
4 changed files with 12 additions and 1 deletions
|
|
@ -47,6 +47,10 @@ This highlighter defines the following styles:
|
|||
* `dollar-double-quoted-argument` - dollar double quoted arguments
|
||||
* `back-double-quoted-argument` - back double quoted arguments
|
||||
* `assign` - variable assignments
|
||||
* `isearch` - matched string in history-incremental-search* widgets
|
||||
* `region` - selected region (between the point and the mark)
|
||||
* `special` - unprintable characters
|
||||
* `suffix` - suffix characters used in the completion system
|
||||
* `default` - parts of the buffer that do not match anything
|
||||
|
||||
To override one of those styles, change its entry in `ZSH_HIGHLIGHT_STYLES`, for example in `~/.zshrc`:
|
||||
|
|
|
|||
|
|
@ -56,6 +56,10 @@
|
|||
: ${ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]:=fg=cyan}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]:=fg=cyan}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[assign]:=none}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[isearch]:=fg=yellow,bg=red,bold}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[region]:=bg=blue}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[special]:=none}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[suffix]:=none}
|
||||
|
||||
# Whether the highlighter should be called or not.
|
||||
_zsh_highlight_main_highlighter_predicate()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue