Different colors for functions, user defined functions, macros, and variables. #57
Replies: 1 comment
-
Hi @danielbarnes, The colors are currently implemented by default colors for the known types via rule name in the au3.tmLanguage.json. For example, operators, like not and or are set as keywords: vscode-autoit/syntaxes/au3.tmLanguage.json Lines 58 to 60 in d4b2f97 Whereas function names are set as entity function names: vscode-autoit/syntaxes/au3.tmLanguage.json Lines 66 to 69 in d4b2f97 I know that coloring can depend from theme to theme. In my case (Dark Modern) function names and variables have different colors: I found some vscode documentation you could use to customize colors via settings (JSON): I wrote a small example with horrible colors, to demonstrate: {
"editor.tokenColorCustomizations": {
"functions": "#FF0000",
"keywords": "#00FF00",
"textMateRules": [
{
"scope": "keyword.operator",
"settings": {
"foreground": "#FFFF00"
}
}
]
}
} To make this only affect AutoIt3 files, you could wrap it in: "[au3]": {
// insert custom settings for au3 only here...
}, In regards to UDF and functions being the same color, i assume you mean that you would like different colors for the builtin functions vs user defined functions? Currently that is not something i have planned, and am not sure if should be 😅 To support picking a target au3 version, it would haft to be implemented on the language server, and it is not ready for performance critical things like coloring, yet. 😄 |
Beta Was this translation helpful? Give feedback.
-
Currently functions, UDF and variables are all white.
It would be amazing if they could each have their own color.
also some AutoIt operators appear as white too (such as not, or)
Beta Was this translation helpful? Give feedback.
All reactions