A Dark Colour Scheme For ActionScript, Ruby, MXML and Rails
Many programmers prefer to display the code editor with a dark background rather than Visual Studio’s default white background. The good news is that the Visual Studio colours are hugely configurable. You can do everything from tweaking just one or two colours to creating a whole new colour scheme.
Our Flex IDE, ‘Amethyst’, pushes Visual Studio’s configuration to the limit. Not only does it use the Visual Studio defaults for common items such as Strings, Numbers and Comments but it also adds in a huge range of additional options to let you colour each specific ActionScript keyword - with different colours for, say, public and private, get and set and so on. In fact, Amethyst has no less than 64 ActionScript and 6 MXML colour options in addition to the Visual Studio defaults.
If you want to change some colours, just open the Settings dialog (Tools, Options, Environment, Fonts and Colors) and locate the sections beginning with ActionScript and MXML in the Display Items list for the Text Editor.
Ruby In Steel also provides dedicated colour options (find the Ruby and Rails settings in the font list). For more information on colouring Ruby In Steel, refer to our tutorial, Customize the Colours of the Ruby In Steel IDE.
Note that older Ruby In Steel colour schemes (those on this site and provided with the software) are not well behaved with Amethyst. That is, simply, due to the fact that they were created before Amethyst even existed and they do not, therefore, include ActionScript and MXML colour schemes. To help fill that gap, I have now created a new colour scheme called amethyst dark.
The Amethyst Dark scheme can be used with Amethyst or with Ruby In Steel or, indeed, with C# and VB .NET. In fact, it can be used with any combination of the above.
If you don’t have Amethyst or Ruby In Steel loaded then the settings related to them will be ignored. If you have one or both of them loaded, on the other hand, their syntax-specific settings will all be imported.
In order to load up this colour scheme, follow these steps:
Download amethyst-dark.vssettings.zip and unzip it.
Select the Tools menu, then Import and Export Settings.
Select Import selected environment settings. Click Next.
Optionally (and recommended so that you can easily restore your current settings) select ‘Yes, save my current settings’ and browse to a directory in which to save them. Select Next.
Select Browse and browse to amethyst-dark.vssettings. Select it and click Next.
Verify the options you are about to import (should be Options->Environment->Fonts and Colors).
Click Finish. Then click Close to exit the wizard.