Creating a colorscheme #3582
-
Hello! Recently started using and customizing Micro, adding some plugins and then try several color schemes. Although some are decent looking they lack depth. So I've been tweaking with "darcula" in particular to address most of the keywords in Python, type words, variables and so on. However while doing so several of the commands do not work. I might missing something so any help would be useful, these are some of the commands that, at least for me, don't work properly:
Also the identifier only works with the built-in functions, not the custom ones (which retain the default color, this also applies with the function preceded by the dot operand), and some functions are considered "type" like enumerate, range, and so on. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This is determined by the syntax file for Python. Anything you use in a colorscheme only works with languages that have syntax files that define those tokens. For example if you look at the Python syntax file you can see
Not really. You might be able to hack together something that sort of works by abusing regions rules of the syntax files, but micro's syntax highlighting system is not really advanced enough to do this kind of thing properly. |
Beta Was this translation helpful? Give feedback.
This is determined by the syntax file for Python. Anything you use in a colorscheme only works with languages that have syntax files that define those tokens. For example if you look at the Python syntax file you can see
True
andFalse
are both defined as simply "constant" (and not "constant.bool.true" like they are in some others like the toml syntax file). You may add customize…