Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1632: #pragma 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
accord Posted - Apr 08 2008 : 2:52:08 PM
You are working on coloring, so it maybe a good time to report a coloring issue.

"#pragma" and the words after it is coloring by Visual Studio in the editor (so VA do not need to overwrite it). But everywhere else VAX is need to decide it's color (for example in VA View).

- #pragma is colored blue by default (keyword color) both in VA View and Editor.
- #pragma keywords (once, warning, etc.) is colored as keywords in editor (blue by default), but VA is coloring it as a variable (VA Fonts and Colors).
- non-keyword words colored as an identifier in the editor (Fonts and Colors in options dialog of the IDE, black by default), VA is using variable color.

For example #pragma once is blue in the editor, but VA is using variable color for "once".
3   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Apr 13 2008 : 12:22:38 PM
>Or are you talking about words after #ifdef that VA does not recognise?

Yes, sure. For example:
//#define CHOCOLATE_CAKE 1
#ifdef CHOCOLATE_CAKE

Notice the // before the first line
So, first of all, VAX should use identifier color instead of it's own variable color for default color.
(Identifiers are black by default, variables are gray by default.)

#pragma keywords are less important, but an example:
#pragma warning( disable : 4244 )
should colored like in the IDE instead of like this
#pragma warning( disable : 4244 )
(Brown is used to represent the variable color)
Strange: VAX is already using the right color for parenthesis and numbers...

So, the rule is simple: every place where VAX cannot identify a symbol should use IDE identifier color, instead of VA variable color.
feline Posted - Apr 10 2008 : 3:49:44 PM
Do you have some examples? The only thing I ever use #pragma for is #pragma once
I see the colouring problem with "once" on the #pragma line.

#ifdef, this is being coloured as a keyword for me in VA Outline.

In your second post, do you mean that:

#define CHOCOLATE_CAKE 1
#ifdef CHOCOLATE_CAKE

should colour the second instance of "CHOCOLATE_CAKE" as a variable in VA Outline? Surely it should be coloured as a macro?
Or are you talking about words after #ifdef that VA does not recognise?
accord Posted - Apr 08 2008 : 5:42:39 PM
After other stuffs like #ifdef should also use IDE identifier color (default: black) instead of VA variable color.
If someone (like me) using a bright color for VA variable color, the difference will be a huge

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