Is there a relatively easy way to add syntax highlight keywords?


#1

Basicly, on c++ I want to have the variable “string” and “socket” highlighted just like any other variable, in that same purple-pink color thing. Is there any easy way to do that?
is there some like Documentation on that you can point me to?
any ideas?


#2

This isn’t a theme issue at all. Which words get highlighted is determined by the language grammar package. It’s not terribly hard to make a new one (I’ve written a template with informative annotations) and it’s possible to include other grammars (you can see an example here).

The first step would be to determine what sequence of CSS classes is being given to the other variables, by looking in c++.cson.