Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

how to highlighting keywords? #287

Closed
kingfengji opened this issue Nov 25, 2018 · 5 comments
Closed

how to highlighting keywords? #287

kingfengji opened this issue Nov 25, 2018 · 5 comments

Comments

@kingfengji
Copy link

Hey yo, this is awesome and badass!

I'm not sure how can I modify the json files so as to make my terminal high-lighting keywords ( as we usually get from, say, oh-my-zsh etc), and I can then actually do some codings via ssh.

thanks yo.

@GitSquared
Copy link
Owner

Yo, you can change the base color for the terminal in your theme file, but the script will "monochrome-ify" all the actual terminal colors to match your theme i'm afraid.

@kingfengji
Copy link
Author

yo thanks for the feedback, yes I wish to see some different colors in the terminal yo.
Like in VIM, the variables/ function defs will display in a different color, is it possible my bro? @GitSquared

Thanks yo

@GitSquared
Copy link
Owner

GitSquared commented Nov 25, 2018

@kingfengji Hold up, there's actually a workaround for this, forgot i even implemented it. See this source.

In your theme file you can actually define each xTerm color so that the terminal won't be in 50 shades of the theme color.

Here's an example of what that would look like because this is an undocumented feature:

file: theme.json (partial)

"colors": {
  "black": "#2e3436",
  "red": "#cc0000",
  "green": "#4e9a06",
  "yellow": "#c4a000",
  "blue": "#3465a4",
  "magenta": "#75507b",
  "cyan": "#06989a",
  "white": "#d3d7cf",
  "brightBlack": "#555753",
  "brightRed": "#ef2929",
  "brightGreen": "#8ae234",
  "brightYellow": "#fce94f",
  "brightBlue": "#729fcf",
  "brightMagenta": "#ad7fa8",
  "brightCyan": "#34e2e2",
  "brightWhite": "#eeeeec"
}

Included in the example are the default colors used to generate the monochromified variants.

@kingfengji
Copy link
Author

You rock, man, let me play with it a little bit.

Thanks yo.

@GitSquared
Copy link
Owner

You're welcome bro.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants