Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Coloring problem... (?)

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
gbozoki Posted - Oct 09 2006 : 1:59:54 PM
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 '...').)
4   L A T E S T    R E P L I E S    (Newest First)
gbozoki Posted - Oct 09 2006 : 7:12:33 PM
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.
feline Posted - Oct 09 2006 : 3:50:55 PM
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.
support Posted - Oct 09 2006 : 3:40:09 PM
... and you might as well install build 1538 if you haven't already.
feline Posted - Oct 09 2006 : 3:02:29 PM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000