Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Interesting coloring for attributes

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

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

Forum code is on.
Html is off.

Check to subscribe to this topic.

T O P I C    R E V I E W
Uniwares Posted - Feb 19 2020 : 11:03:42 AM

5   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 20 2020 : 05:40:02 AM
VA's colouring does try to cooperate with the IDE, rather than just overwriting it. Looks like we are cooperating particularly well here Still looks odd with one symbol in two different colours, but perhaps it is deliberate in this case.
Uniwares Posted - Feb 19 2020 : 12:47:30 PM
You are absolutely right, this is a VS bug/feature. Even with VA disabled it is rendered like this. Funny though that VA renders the symbols bold in two colors. And when fully specified (System.Runtime.InteropServices.xxxAttribute), its rendered in one color only.
feline Posted - Feb 19 2020 : 12:24:14 PM
Agreed, but I asked about italic since importing some IDE settings you sent me for a previous bug report leaves all of the attribute symbols white, on a dark background, without anything italic at all. So I wanted to start somewhere.

Have you tried disabling VA? I have just created a new, default C# Windows Console solution using VS2019, and copied and pasted in this code above the "Main" function. This is a clean machine, VA has never been installed, and I have the mixed colours. No italic and no bold, but two tone symbols. So you should see the same with VA disabled.
Uniwares Posted - Feb 19 2020 : 12:01:30 PM
Yes, when I turn off the "Show system symbols in italic" its no longer italic. Its C#. But the point is not the italic, but the two different shades of greenish, "Attribute" beeing darker. Someone is coloring only a part of the symbol.

[DllImportAttribute("winspool.drv", CharSet = CharSet.Auto)]
[return: MarshalAsAttribute(UnmanagedType.Bool)]
public static extern bool ClosePrinter([InAttribute()] System.IntPtr hPrinter);
feline Posted - Feb 19 2020 : 11:47:51 AM
Is the italic coming from VA? If you turn Off:

VA Options -> Coloring and Attributes -> Show stable symbols in italics

does this stop these symbols being shown in italic?

Assuming this is C#, and taking the very simple example from:


I am not seeing any italic text from VA in the attribute line.

My first guess as to the two colours is that VA and IDE settings are set to different colours for something that ends up overlapping on these lines.

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