highlighting-dracula.sh (3918B)
1 # Dracula Theme (for zsh-syntax-highlighting) 2 # 3 # https://github.com/zenorocha/dracula-theme 4 # 5 # Copyright 2021, All rights reserved 6 # 7 # Code licensed under the MIT license 8 # http://zenorocha.mit-license.org 9 # 10 # @author George Pickering <@bigpick> 11 # @author Zeno Rocha <hi@zenorocha.com> 12 # Paste this files contents inside your ~/.zshrc before you activate zsh-syntax-highlighting 13 ZSH_HIGHLIGHT_HIGHLIGHTERS=(main cursor) 14 typeset -gA ZSH_HIGHLIGHT_STYLES 15 # Default groupings per, https://spec.draculatheme.com, try to logically separate 16 # possible ZSH_HIGHLIGHT_STYLES settings accordingly...? 17 # 18 # Italics not yet supported by zsh; potentially soon: 19 # https://github.com/zsh-users/zsh-syntax-highlighting/issues/432 20 # https://www.zsh.org/mla/workers/2021/msg00678.html 21 # ... in hopes that they will, labelling accordingly with ,italic where appropriate 22 # 23 # Main highlighter styling: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md 24 # 25 ## General 26 ### Diffs 27 ### Markup 28 ## Classes 29 ## Comments 30 ZSH_HIGHLIGHT_STYLES[comment]='fg=#6272A4' 31 ## Constants 32 ## Entitites 33 ## Functions/methods 34 ZSH_HIGHLIGHT_STYLES[alias]='fg=#50FA7B' 35 ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=#50FA7B' 36 ZSH_HIGHLIGHT_STYLES[global-alias]='fg=#50FA7B' 37 ZSH_HIGHLIGHT_STYLES[function]='fg=#50FA7B' 38 ZSH_HIGHLIGHT_STYLES[command]='fg=#50FA7B' 39 ZSH_HIGHLIGHT_STYLES[precommand]='fg=#50FA7B,italic' 40 ZSH_HIGHLIGHT_STYLES[autodirectory]='fg=#FFB86C,italic' 41 ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=#FFB86C' 42 ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=#FFB86C' 43 ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='fg=#BD93F9' 44 ## Keywords 45 ## Built ins 46 ZSH_HIGHLIGHT_STYLES[builtin]='fg=#8BE9FD' 47 ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=#8BE9FD' 48 ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=#8BE9FD' 49 ## Punctuation 50 ZSH_HIGHLIGHT_STYLES[commandseparator]='fg=#FF79C6' 51 ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]='fg=#F8F8F2' 52 ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-unquoted]='fg=#F8F8F2' 53 ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]='fg=#F8F8F2' 54 ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]='fg=#FF79C6' 55 ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=#FF79C6' 56 ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]='fg=#FF79C6' 57 ## Serializable / Configuration Languages 58 ## Storage 59 ## Strings 60 ZSH_HIGHLIGHT_STYLES[command-substitution-quoted]='fg=#F1FA8C' 61 ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-quoted]='fg=#F1FA8C' 62 ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=#F1FA8C' 63 ZSH_HIGHLIGHT_STYLES[single-quoted-argument-unclosed]='fg=#FF5555' 64 ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=#F1FA8C' 65 ZSH_HIGHLIGHT_STYLES[double-quoted-argument-unclosed]='fg=#FF5555' 66 ZSH_HIGHLIGHT_STYLES[rc-quote]='fg=#F1FA8C' 67 ## Variables 68 ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]='fg=#F8F8F2' 69 ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument-unclosed]='fg=#FF5555' 70 ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=#F8F8F2' 71 ZSH_HIGHLIGHT_STYLES[assign]='fg=#F8F8F2' 72 ZSH_HIGHLIGHT_STYLES[named-fd]='fg=#F8F8F2' 73 ZSH_HIGHLIGHT_STYLES[numeric-fd]='fg=#F8F8F2' 74 ## No category relevant in spec 75 ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=#FF5555' 76 ZSH_HIGHLIGHT_STYLES[path]='fg=#F8F8F2' 77 ZSH_HIGHLIGHT_STYLES[path_pathseparator]='fg=#FF79C6' 78 ZSH_HIGHLIGHT_STYLES[path_prefix]='fg=#F8F8F2' 79 ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]='fg=#FF79C6' 80 ZSH_HIGHLIGHT_STYLES[globbing]='fg=#F8F8F2' 81 ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=#BD93F9' 82 #ZSH_HIGHLIGHT_STYLES[command-substitution]='fg=?' 83 #ZSH_HIGHLIGHT_STYLES[command-substitution-unquoted]='fg=?' 84 #ZSH_HIGHLIGHT_STYLES[process-substitution]='fg=?' 85 #ZSH_HIGHLIGHT_STYLES[arithmetic-expansion]='fg=?' 86 ZSH_HIGHLIGHT_STYLES[back-quoted-argument-unclosed]='fg=#FF5555' 87 ZSH_HIGHLIGHT_STYLES[redirection]='fg=#F8F8F2' 88 ZSH_HIGHLIGHT_STYLES[arg0]='fg=#F8F8F2' 89 ZSH_HIGHLIGHT_STYLES[default]='fg=#F8F8F2' 90 ZSH_HIGHLIGHT_STYLES[cursor]='standout'