When, for example, making a colorscheme, how can one define #40ffff as “UglyColor” (i.e. as a variable) ?
Possible / not possible ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s not possible with the built in syntax. However, it can be done if the you make your own syntax:
You could then take this further by creating a dictionary:
And then process it with something like this:
This is how my Bandit colour scheme works (with a bit more logic in there for auto-generating cterm colours, light background colours and a syntax file so that the colour scheme self-highlights). Feel free to have a look at that one and steal the functions and format for your own colour scheme.