Closed barnes14 closed 5 years ago
Currently you can't. The extension does not parse the code to understand what is a macro or a function, but has fixed lists for the reserved names of glsl, grouped into variables, functions and keywords. For these 3 groups you can change the color in the visual studio option menu under Environment -> Fonts and Colors -> Display Items with GLSL as prefix. Does this help you?
I know how to change colors) About lists - can I change them?
Currently only during the compile-time of the extension. The list with reserved names are compiled with the extension code as resources.
I thought as much) Can you tell me where in the code I can add my extensions?
That depends on what exactly do you want as a result: Should macros be detected and colored if the substitute a function or do you want to add a user defined list of names that will be colored or something else?
I think a custom list of extensions will be enough
The new release includes a user key words option field. You can enter a space separated list of key words. These will be colored with the GLSL user key word color under the Fonts and Colors section.
Nice!!! Big tnx))
Glad to help!
Installed product versions
Description
how to set the color for texture2DRect or any redefined funcs? Like
define texLod textureLod