Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Different color for code comments and XML comments in VB.NET

I've noticed that in C# XML comments and code comments can have different colors by changing the settings in Tools > Options > Environment > Fonts and Colors > Display Items: - Comment: controls code comments - XML comment: controls XML comments

This works well in C#

///<summary>This XML comment is green</summary>

//This code comment is red

But not in VB.NET

'''<summary>This XML comment appears red too even though it's configured as green</summary>

'This code comment is red

Is there a way to fix this?

like image 830
JBB Avatar asked Sep 26 '11 10:09

JBB


1 Answers

The coloring settings for VB and C# are different for each language.

Here's a partial list of the corresponding settings between the two:

C#                 VB
Comment            Comment
XML Doc Attribute  VB XML Attribute
XML Doc Comment    VB XML Comment (the second one)
XML Doc Tag        VB XML Doc Tag
like image 51
Jeff Mercado Avatar answered Oct 11 '22 09:10

Jeff Mercado