Starting with Basic4androdi v1.8 it is possible to modify the code editor colors.
This is done by editing the file B4A.xml that is located in the installation folder.
The colors are set in the "styles" node.
You should restart the IDE for the changes to take effect.
You are welcomed to share your schemes.
The default values are:
Code:
<!-- Highlighting Styles -->
<Styles>
<Style Key="IdeBackground" ForeColor="White"/>
<Style Key="ContentDivider" ForeColor="ControlDark"/>
<Style Key="LineNumber" ForeColor="Teal" />
<Style Key="ToolTipBackground" ForeColor="Info" />
<Style Key="ToolTipDefaultStyle" ForeColor="Black" />
<Style Key="DefaultStyle" ForeColor="Black"/>
<Style Key="GlobalVariablesStyle" ForeColor="#6600CC"/>
<Style Key="ReservedWordStyle" ForeColor="Blue" />
<Style Key="NumberStyle" ForeColor="Purple" />
<Style Key="TypeWordStyle" ForeColor="DarkCyan" />
<Style Key="StringDefaultStyle" ForeColor="Maroon" />
<Style Key="CommentDefaultStyle" ForeColor="Green" />
<Style Key="SelectionHighlight" ForeColor="PaleTurquoise" />
<Style Key="ReferenceHighlight" ForeColor="#00FFEF" />
<Style Key="UndeclaredIdentifier" ForeColor="Red" />
<Style Key="PreProcessorDirectiveKeywordStyle" Name="Pre-Processor Directive Keyword" ForeColor="Gray" />
</Styles>
COBRASoft has created a soft color scheme:
Code:
<Styles>
<Style Key="IdeBackground" ForeColor="#1D314C"/>
<Style Key="ContentDivider" ForeColor="#C2D5DC"/>
<Style Key="LineNumber" ForeColor="#58859B" />
<Style Key="ToolTipBackground" ForeColor="#36598A" />
<Style Key="ToolTipDefaultStyle" ForeColor="#F0F0F0"/>
<Style Key="DefaultStyle" ForeColor="#F0F0F0"/>
<Style Key="GlobalVariablesStyle" ForeColor="#D8CFA0"/>
<Style Key="ReservedWordStyle" ForeColor="#9CC4D2" />
<Style Key="NumberStyle" ForeColor="#F4AF82" />
<Style Key="TypeWordStyle" ForeColor="#45B6DC" />
<Style Key="StringDefaultStyle" ForeColor="#F4AF82" />
<Style Key="CommentDefaultStyle" ForeColor="#85DE6D" />
<Style Key="SelectionHighlight" ForeColor="#2B70B6" />
<Style Key="ReferenceHighlight" ForeColor="#E0E0E0" />
<Style Key="UndeclaredIdentifier" ForeColor="#FF1E1E" />
<Style Key="PreProcessorDirectiveKeywordStyle" Name="Pre-Processor Directive Keyword" ForeColor="#FFE5C2" />
</Styles>
Which looks like:
The following attributes are supported (IdeBackground, LineNumber, ContentDivider and UndeclaredIdentifier are treated specially and do not support additional attributes):
