Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1635: Syntax coloring

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
khb Posted - Apr 25 2008 : 3:30:22 PM
Just tried 1635. E.g., when I type:
CStringArray sa;
sa.Add("one two");
then the second word (two) is always colored gray. Keywords are also colored wrongly in strings. This was correct for 1626, I think.

VC6, WinXP, no other add-ins.

Regards
Marcus
22   L A T E S T    R E P L I E S    (Newest First)
khb Posted - May 28 2008 : 04:36:45 AM
Thanks a lot!

Regards
Marcus
kevinsikes Posted - May 27 2008 : 01:52:28 AM
case=16454 is fixed in build 1640
khb Posted - May 22 2008 : 08:38:23 AM
Sean, thank you for the details. I set my string fg color to dark blue; this works for me for now.

Regards
Marcus
sean Posted - May 22 2008 : 03:41:25 AM
I've confirmed that this occurs in vc6 when the string fg and bg are set to automatic. We are working on a fix. A workaround is to set the fg color of strings something different than the fg color of text (in the vc6 options dialog - format tab).
khb Posted - May 21 2008 : 02:54:47 AM
Feline, thank you for your answer. I'll try poking around the color settings in the VC6 options.

Regards
Marcus
feline Posted - May 20 2008 : 2:25:33 PM
This is down as a high priority bug fix. We hoped that one of the colouring fixes in VA 1638 would have fixed this, but unfortunately they did not.

If you want I can upload my VC6 and VA settings, which you can then import on your system. In theory this should fix the problem, but you will have to customize both VA and VC6 back to how you want, since my settings and preferences are probably different.

I have the feeling there was a second thread about something similar, where the user reported that changing the colour of Strings in VC6 options, and applying this change, several times, fixed the problem. However I cannot find that thread so far.

It might be worth a try, since it is a fairly quick and easy test, especially if it actually works.
khb Posted - May 20 2008 : 03:02:43 AM
I know this is only a minor issue, but it's quite disturbing as I face it all the time. Is there a chance of getting this fixed within one of the next builds? Or do you at least have a workaround for this problem?

Regards
Marcus
khb Posted - May 03 2008 : 5:33:52 PM
Great! Thank you for trying so hard!

Regards
Marcus
feline Posted - May 03 2008 : 3:12:22 PM
I have the settings, thank you for these. I am now able to reproduce the problem:

case=16454
khb Posted - May 03 2008 : 10:04:40 AM
Feline, I just sent you the files. Please contact me if anything is missing.

I found another strange thing when marking code, but I will start a new topic for that.

Regards
Marcus
feline Posted - May 03 2008 : 09:38:35 AM
*sigh* as expected, no sign of any problems here.

Can you please export your VA settings and send them to me:

VA Options -> Performance -> Export Settings

VC6 does not have an export settings button, but it looks like the main settings are stored under the registry key:

HKEY_CURRENT_USER\\Software\\Microsoft\\DevStudio\\6.0\
Can you please export this key with Regedit and send me the resulting file. I can then import both sets of settings here and see if I can reproduce the problem.


Please submit the files via the form:

http://www.wholetomato.com/support/contact.asp

including this thread ID or URL in the description, so we can match it up.
khb Posted - May 03 2008 : 04:29:39 AM
I just created a new console application, the "Hello world" example. If I here mark the word "Hello" then the word "world" becomes gray. I added your function to the implementation file and marked the word "hello". In this case the words "int" and "long" turned blue.

Regards
Marcus
feline Posted - May 02 2008 : 11:32:49 AM
If you create a new, default, project do you see the same problem there?

I am starting to wonder if the problem is somehow file or workspace specific.

Can you add this very simple test case to a file please, and see if you see any problems with it:

static void testColourInLiteralString()
{
	char *pTest = "hello world - int and long are types";
}


I have tried this test here, and I have selected "hello world" using the mouse and the keyboard, in several different manors, and I am not seeing any colouring problems.
khb Posted - May 01 2008 : 5:55:03 PM
Just tried both. Neither works. When setting the foreground color of strings to magenta, all words after the marked character(s) get another color again. Most of them become gray, some blue, etc.

Regards
Marcus
feline Posted - May 01 2008 : 1:06:20 PM
Have you tried restarting the IDE since you reset the fonts? This probably won't make any difference, but it is a quick test.

Can you try setting the Foreground colour of "String" to something different, and obvious. Perhaps magenta?
I am wondering if having strings actively coloured will make any difference to this.
khb Posted - May 01 2008 : 12:20:54 PM
I'm sorry, but no. Even if I re-open the file after re-setting the fonts.

Regards
Marcus.
feline Posted - May 01 2008 : 09:08:30 AM
*deeply puzzled* Does re-setting the IDE font and colour settings a second time help?
khb Posted - May 01 2008 : 06:38:49 AM
Well, the problem came back to me. Sort of. If I mark something in a string (e.g., by double clicking a word) then a following words in the string get colored incorrectly again.

Regards
Marcus
khb Posted - Apr 27 2008 : 06:49:36 AM
So, I was just a lucky winner again . Yeah, we all love those non-reproducible problems...

Anyway, 1535 looks good to me so far. I think that it was a good idea of you to do this long bug fixing session rather than introducing lots of new features (although I always love them). Keep up the good work!

Regards
Marcus
feline Posted - Apr 26 2008 : 2:49:46 PM
Very occasionally, once in 6 months perhaps, I run into a similar problem in VS2005, and resetting the IDE font and colour settings fixes it for me.

Considering that I install different builds of VA daily, the problem is very hard to trigger.

I suspect that somehow VA and the IDE font settings have gone out of sync, but that is just a theory.
khb Posted - Apr 26 2008 : 03:47:15 AM
Thank you, feline. This fixed it also for me. I just wonder why this happend, because I didn't do any changes to the IDE at all. Anyway, I'm glad that it works now as expected. Thanks again!

Regards
Marcus
feline Posted - Apr 25 2008 : 4:38:48 PM
If you have not made to many changes to your VC6 colour scheme can you try pressing the button:

VC6 tools menu -> Options -> Format tab -> Reset All

and see if this helps? Another user recently reported a similar sounding problem, and this fixed the colouring for them.

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