Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

30 linhas
1.1 KiB

há 13 anos
  1. zsh-syntax-highlighting / highlighters / brackets
  2. =================================================
  3. This is the ***brackets*** highlighter, that highlights brackets, parenthesis and matches them.
  4. How to activate it
  5. ------------------
  6. To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
  7. ZSH_HIGHLIGHT_HIGHLIGHTERS=( [...] brackets)
  8. How to tweak it
  9. ---------------
  10. This highlighter defines the following styles:
  11. * `bracket-error` - unmatched brackets
  12. * `bracket-level-N` - brackets with nest level N
  13. * `cursor-matchingbracket` - the matching bracket, if cursor is on a bracket
  14. To override one of those styles, change its entry in `ZSH_HIGHLIGHT_STYLES`, for example in `~/.zshrc`:
  15. # To define styles for nested brackets up to level 4
  16. ZSH_HIGHLIGHT_STYLES[bracket-level-1]='fg=blue,bold'
  17. ZSH_HIGHLIGHT_STYLES[bracket-level-2]='fg=red,bold'
  18. ZSH_HIGHLIGHT_STYLES[bracket-level-3]='fg=yellow,bold'
  19. ZSH_HIGHLIGHT_STYLES[bracket-level-4]='fg=magenta,bold'
  20. The syntax for declaring styles is [documented here](http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#SEC135).