I am setting up Visual & Installer colour syntax to look and feel more like Inno Setup 6 because it is just more comfortable on my eyes (particularly with my colourblindness).
As mentioned here:
All colors can be customized - there are many elements supported: Keywords, Comments, Parameters, Variables, Constants, labels, Preprocessor and many more... Configure them easily in Tools -> Options -> Environment -> Fonts and Colors dialog
So I have been working my way through the available properties:
So far I have come up with (by doing a screen grab from Inno and interrogating the colours):
- Comment: 0 / 153 / 69
- Constant: 160 / 82 / 45
- Flag: 192 / 192 / 192 (Silver)
- Identifier
- Keyword: 0 / 120 / 234
- Number: 255 / 136 / 74
- Parameter
- Pascal: 0 / 123 / 234
- Preprocessor: 169 / 42 / 28
- Section: 245 / 245 / 245 (Whitesmoke)
- String: 255 / 236 / 74
I don't know how close I am to the official Inno Setup colours. Can someone confirm this anywhere?
Specifically though, I am not sure which parts of the script are represented by:
- Identifier
- Parameter
I want to determine what colour Inno Setup is using for them.
Update
I tried to identify these tokens in my script (Identifier
, Parameter
) by setting the background colour to something bright and I saw no such elements. I restarted Visual Studio to be sure. So I am not sure what is happening?
Default Inno Setup IDE (Compil32.exe)
It does not support the changing of the syntax colors. They are hard-coded in sources. So only way how to change them is to recompile the Inno Setup from sources. Their colors are defined here.
Important Note: The colors are different for each Theme the IDE uses.
See this file to understand how the colors are applied to specific items.
Visual & Installer for Visual Studio IDE
Colors can be completely adjusted in Options dialog, section Fonts and Colors. They do NOT match the official Inno Setup color, the V&I is not an exact copy of Inno IDE, feel free to adjust colors to match your needs.
Important Note: It is hard to compare the colors, because the IDEs have different mechanism how the syntax highlighting works! Not everything that is a Keyword in Inno IDE is a Keyword in V&I etc.
Parameter and Identifiers
The colors for
Parameters
andIdentifiers
are currently not used and are reserved for future use.[Files]
section and they are colored with Keyword color currently:For completeness here are the default colors used in Visual & Installer - Visual Studio:
Update
Following provided by @ajtruckle.
The Inno Setup colour constants (from the source code link above) are:
The colour codes above appear to be BGR. Taking that into account these appear to be the equivalent colour mappings for Visual and Installer:
Comment
— Green —RGB(51, 153, 51)
Keyword
— Blue —RGB(0, 120, 212)
Number
— Orange —RGB(229, 136, 94)
Pascal
— Blue —RGB(0, 120, 212)
Preprocessor
— Red —RGB(204, 41, 61)
String
— Orange —RGB(229, 136, 94)
Visual and Installer specific:
Constant
Flag
Section
Parameter
— Not yet in use (usage as described above)Identifier
— Not yet in use (usage as described above)