Vanilla 1.1.1 is a product of Lussumo. More Information: Documentation, Community Support.
Well, Intype uses powerful grammar definition scheme and themes. Grammars (defined in are used to parse the text and generate a tree (output similar to HTML DOM), and with theme (defined in it applies coloring (in way similar to CSS). To help you more, can you please let us know what grammar and theme you have turned on?
Njke
Do punctuation marks belongs to some group….
They belong to punctuation group
Njke: Well, intype does not use groups, as other editors, however, the C grammar (which is being used by C++ grammar) is a simple one. So take a look at “[Intype Install Folder]\bundles\C.itBundle\syntaxes” and you’ll find two grammars C and C++. Open C grammar and you’ll find grammar rules used for parsing the text. As Intype uses similar grammar system to TextMate, you can take a look at description of language grammars format to get the idea on how it works. You will add a set of rules that look like this:
{
match: /(\.)|(\-\>)|(==)|(=)|(\:\:)|(\,)/
name: 'keyword.operator.c'
}
This basically says: If . or -> or == or = or :: or , found, then assign it a name “keyword.operator.c”. I’ve added this example to the grammar. The position is crucial, because you want to not match the operators in strings or comments (so string and comment rules must be before the operators). Take a look here: http://intype.info/temp/C.itGrammar. Espresso now should display the operators in light blue color with bold font. That’s because it’s highlighting only keywords. You can change this, it’s in “[Intype Install Folder]themes\espresso_libre.itTheme”. Open it and try to find “keyword.operator” rule (just use Ctrl+F to find word “keyword.operator”). If found there is “JS Operator”. You can change it’s scope selector to “keyword.operator.js, keyword.operator.c” or simply remove “.js” to have it match operators everywhere. You can then change the textcolor, add background color, or set font style. Don’t forget to use command Bundles/Reload Bundles after changing the grammar. However, after changing the theme, you’ll have to close and open Intype again, the reload themes feature is not there yet.
Let me know if this was helpful to you, and if it did the trick.
1 to 8 of 8