visual studio editor colors

Hi,

I am using visual studio 2008 pro.  I want to control the color scheme of my visual basic code.  Specifically, I want to set the color of comments and variables.  For example, I have

<%
' File: FileName1.asp

...

Dim Avar

...
%>

Currently everything renders in black.  I went to tools-options-environment-fonts and colors and looked at the color coding for the Text editor.  Every item that had "comment" as part of the name was green.  I also reset the text editor to defaults.  But all of my code is still black.

This should be simple, but I just don't see it.  Help would be appreciated.
santaspores1Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
clayhopkinsConnect With a Mentor Commented:
Hi again-

Ok after much playing around, this is how my VS 2008 operates.  In an aspx file, with page language set to "VB", comments are "HTML Comment".  In a straight .vb file, comments are "Comment".  I couldn't get the color to change on existing comments, but if I uncommented and recommented the line, the color change showed up in both files.  I was also using the comment/uncomment buttons, which seemed to work better.

Hope this helps!
0
 
clayhopkinsCommented:
If you're writing VB code, aren't comments indicated by a single quote (apostrophe)?
0
 
santaspores1Author Commented:
Yes.  The issue is... how do I configure the IDE to change the color used for VB comments and key words and variables etc.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
clayhopkinsCommented:
Hmm, the steps you describe should work.  Do you have the latest updates for .NET 3.5?
0
 
santaspores1Author Commented:
Hi Clay

Yes, the steps should work and I actually assume they do.  I just need to verify that the Text editor is what I should be configuring, and then I need to know what the vb comments etc are called so I can find them in the list.  

If you can create an asp page using vb, add a comment, and then change the color of your comment within the IDE... then you will have figured out what I have not.

0
 
santaspores1Author Commented:
Thanks for that test Clay!  Unfortunately it didn't help.  I have a classic asp file.  The page language is set to VB.  Both my "HTML Comment" and "Comment" items are set to foreground=green.  I can uncomment and recomment the lines, but they are black each and every time.

The comments  and variable names are in the form of:
<%
' File: FileName1.asp (this is a commented out line)

...

Dim Avar (this is a variable declaration

...
%
0
 
santaspores1Author Commented:
p.s. Clay... I would be happy to give you the points.  But I just don't have any solution to my problem...
0
 
clayhopkinsCommented:
No problem, I'm puzzled as to what's going on.  Have you gone so far as to reinstall VS?
0
 
santaspores1Author Commented:
Reinstall...No, not for color-coding.  I think I will award this to you and just play with it later.  Too busy now.
0
 
santaspores1Author Commented:
Thanks for your time Clay.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.