Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Coloring problem... (?)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gbozoki
Ketchup Master

USA
70 Posts

Posted - Oct 09 2006 :  1:59:54 PM  Show Profile  Reply with Quote
Hi all,

I'm not sure if this is a coloring problem with VAX or VS 2005, but is there a way to make it go away (that is, have similar symbols colored with the same color)? Or is there something that I overlooked?

Here is a screenshot of what I mean, look at AppendLine() and Insert() for the StringBuilder.



(Note, that I made minor edits to the screenshot: I removed the red wavy lines from under the ellipsis and colored it black (the '...').)

Edited by - gbozoki on Oct 09 2006 2:00:24 PM

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Oct 09 2006 :  3:02:29 PM  Show Profile  Reply with Quote
which version of VA and which IDE are you using?
inserting this code into a C# project on my machine, using VS2005 and VA 1538 I am seeing:



I have set VA to show functions in orange, and stable symbols in italic.

What happens if you turn on:

VA Options -> Environment -> Fonts and Colors -> Stable symbols in Italic

my system suggests that the StringBuilder functions should be shown in italic. if they are not this suggests VA is having problems understanding C# on your system.

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 09 2006 :  3:40:09 PM  Show Profile  Reply with Quote
... and you might as well install build 1538 if you haven't already.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Oct 09 2006 :  3:50:55 PM  Show Profile  Reply with Quote
to make life easier next time around, the text is:

StringBuilder oSB = new StringBuilder();

if ( bSomeCondition )
    oSB.AppendLine ( "SomeText" );

if ( oSB.Length > 0 )
{
    oSB.Insert ( 0, ValidateErrorMessageHeader );
    sError = oSB.ToString ();
}
else
    sError = String.Empty;


now we can just copy / paste it, rather than having to re-type it each time.

zen is the art of being at one with the two'ness
Go to Top of Page

gbozoki
Ketchup Master

USA
70 Posts

Posted - Oct 09 2006 :  7:12:33 PM  Show Profile  Reply with Quote
Guys,

Thanks for the ideas, I'll try 1538 (I have 1535 right now.) I'll also see if the italic option properly italicizes the symbols and let you know.

PS: sorry about not pasting the actual code with the topic, I just wanted to attach a screenshot and forgot that you may want to type it to see the problem.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000