SapphireSteel Software

 

  -  
     
     
     
  -  
     
     
     
  -  
     
     
     
  -  
     
     
     
  -  
     
     
     
     

 

  rss
RSS (SITE)
 
  rss
RSS (BLOG ONLY)
 
   
 
 
     

 

Section :: Editor
- Format For Printing...

Some of the colors in the editor look a bit odd. Can I change them?
 

Question:
Some of the colors in the Ruby (.rb) or Rails (.rhtml) editor are difficult to read or simply aren’t colors that I like. Can I change them?

Resolution:

You can change all the code colors. To do this select Visual Studio’s Tools menu, then Options, Environment, Fonts and Colors. The Ruby colors all begin with the word ‘Ruby’; the RHTML colors begin with ‘Rails’.

The Ruby editor also uses the generic Visual Studio coloring options for: Strings, Comments, Numbers, Keywords, Identifiers and Plain Text.

If your colors still don’t seem right, it is possible that the font cache has been corrupted. This may happen if you have loaded a Solution created by an earlier version of Ruby In Steel. You may be able to correct this simply by closing Visual Studio and reopening it. If doesn’t work, close Visual Studio and delete the .suo file of the solution (for example, a solution named MyProgram.sln will have an .suo file called MySolution.suo. Now reload Visual Studio.

If the special colors for Ruby and Rails items are not displayed in the Fonts options dialog, you may need to refresh the font cache by resetting a registry key. We have supplied two small scripts to do this. The first one is for use with VS2008, the other is for VS2005. Download the appropriate script. Exit Visual Studio. Run the script (under Vista you must run it with Administrator privileges). Then reload Visual Studio. This should fix the problem.



[ fontreset08.reg.zip (VS2008) ]
334 bytes
[ fontreset05.reg.zip (VS2005) ]]
334 bytes
Last updated: Friday 9 February 2007.

 

© 2008 SapphireSteel Software. All rights reserved