Comments (3)
Indeed, that was the problem.
I solved it by replacing every #hexvalues in the file with the closest xterm 256 color.
Here is the modified file if anyone is interested.
# Dracula Theme (for zsh-syntax-highlighting)
# Modified to be compatible with Terminal.app on MacOS
# https://github.com/zenorocha/dracula-theme
#
# Copyright 2021, All rights reserved
#
# Code licensed under the MIT license
# http://zenorocha.mit-license.org
#
# @author George Pickering <@bigpick>
# @author Zeno Rocha <[email protected]>
# Paste this files contents inside your ~/.zshrc before you activate zsh-syntax-highlighting
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main cursor)
typeset -gA ZSH_HIGHLIGHT_STYLES
# Default groupings per, https://spec.draculatheme.com, try to logically separate
# possible ZSH_HIGHLIGHT_STYLES settings accordingly...?
#
# Italics not yet supported by zsh; potentially soon:
# https://github.com/zsh-users/zsh-syntax-highlighting/issues/432
# https://www.zsh.org/mla/workers/2021/msg00678.html
# ... in hopes that they will, labelling accordingly with ,italic where appropriate
#
# Main highlighter styling: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md
#
## General
### Diffs
### Markup
## Classes
## Comments
ZSH_HIGHLIGHT_STYLES[comment]='fg=61'
## Constants
## Entitites
## Functions/methods
ZSH_HIGHLIGHT_STYLES[alias]='fg=84'
ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=84'
ZSH_HIGHLIGHT_STYLES[global-alias]='fg=84'
ZSH_HIGHLIGHT_STYLES[function]='fg=84'
ZSH_HIGHLIGHT_STYLES[command]='fg=84'
ZSH_HIGHLIGHT_STYLES[precommand]='fg=84,italic'
ZSH_HIGHLIGHT_STYLES[autodirectory]='fg=215,italic'
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=215'
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=215'
ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='fg=141'
## Keywords
## Built ins
ZSH_HIGHLIGHT_STYLES[builtin]='fg=117'
ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=117'
ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=117'
## Punctuation
ZSH_HIGHLIGHT_STYLES[commandseparator]='fg=212'
ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]='fg=231'
ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-unquoted]='fg=231'
ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]='fg=231'
ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]='fg=212'
ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=212'
ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]='fg=212'
## Serializable / Configuration Languages
## Storage
## Strings
ZSH_HIGHLIGHT_STYLES[command-substitution-quoted]='fg=228'
ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-quoted]='fg=228'
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=228'
ZSH_HIGHLIGHT_STYLES[single-quoted-argument-unclosed]='fg=203'
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=228'
ZSH_HIGHLIGHT_STYLES[double-quoted-argument-unclosed]='fg=203'
ZSH_HIGHLIGHT_STYLES[rc-quote]='fg=228'
## Variables
ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]='fg=231'
ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument-unclosed]='fg=203'
ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=231'
ZSH_HIGHLIGHT_STYLES[assign]='fg=231'
ZSH_HIGHLIGHT_STYLES[named-fd]='fg=231'
ZSH_HIGHLIGHT_STYLES[numeric-fd]='fg=231'
## No category relevant in spec
ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=203'
ZSH_HIGHLIGHT_STYLES[path]='fg=231'
ZSH_HIGHLIGHT_STYLES[path_pathseparator]='fg=212'
ZSH_HIGHLIGHT_STYLES[path_prefix]='fg=231'
ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]='fg=212'
ZSH_HIGHLIGHT_STYLES[globbing]='fg=231'
ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=141'
#ZSH_HIGHLIGHT_STYLES[command-substitution]='fg=?'
#ZSH_HIGHLIGHT_STYLES[command-substitution-unquoted]='fg=?'
#ZSH_HIGHLIGHT_STYLES[process-substitution]='fg=?'
#ZSH_HIGHLIGHT_STYLES[arithmetic-expansion]='fg=?'
ZSH_HIGHLIGHT_STYLES[back-quoted-argument-unclosed]='fg=203'
ZSH_HIGHLIGHT_STYLES[redirection]='fg=231'
ZSH_HIGHLIGHT_STYLES[arg0]='fg=231'
ZSH_HIGHLIGHT_STYLES[default]='fg=231'
ZSH_HIGHLIGHT_STYLES[cursor]='standout'
from zsh-syntax-highlighting.
I'm also getting this. Possibly due to Terminal.app not supporting the colors?
from zsh-syntax-highlighting.
I'll test it out later but thanks for the effort!
from zsh-syntax-highlighting.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zsh-syntax-highlighting.