
Below is a list of jEdit "token types" (from the Global Options/Syntax Highlighting pane) and their corresponding Stata bits.
| Token Type | Stata Use |
|---|---|
| Comment 1 | star - used to un/comment whole lines |
| Comment 2 | slash-star - used to un/comment just the selected text |
| Comment 3 | triple slash |
| Comment 4 | double slash |
| Digit | digits |
| Function | functions, ie xxx(yyy) |
| Keyword 1 | variables, names, option keywords, etc. |
| Keyword 2 | exit, error |
| Keyword 3 | used for stuff that is not parsed, e.g., macro functions, set and syntax commands |
| Keyword 4 | assignment operator, i.e. = |
| Label | *--- special comment line used as a breakpoint by the do macros |
| Literal 1 | unquoted strings, e.g., file names, macro content |
| Literal 2 | double-quoted strings |
| Literal 3 | compound-quoted strings |
| Literal 4 | macros |
| Markup | Not used for Stata |
| Operator | operators (except assignment), e.g., + - * / |
Note that the commands for commenting/uncommenting code will create star or slash-star comments. By keeping these colored differently than double-slash comments, you can easily distinguish between commented-out code and other notes to yourself.



Macro names and unquoted strings as option parameters are not colored correctly. Unfortunately, there's nothing in the option syntax to distinguish them.