Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Green Warning Underlines

I'm having a strange problem in Visual Studio. Today it's decided to add green wiggly underlines to my code in the aspx files:

enter image description here

I've tried to remove some of the code I've written today in the hope of finding what is tripping up the IDE but I can't work it out.

Everything compiles and runs fine. When I hover my mouse over any of the underlines I get the following message "This name contains uppercase characters, which is not allowed".

I've got this on all of my content pages.

Has anyone seen this before or can suggest how to work out what might be wrong?

And by the way, the code passes W3C validation

like image 654
cusimar9 Avatar asked May 10 '11 13:05

cusimar9


People also ask

How do I turn off green underline in Visual Studio?

Currently, as you may already know, there is an option to "disable" the green squiggles - Tools > Options > Text Editor > C/C++ > Advanced > "Disable Code Analysis Squiggles".

What does green underline mean in code?

it means that in the editor settings you set the indentation type to "spaces" and are using "tabs" for indentation. The green line does not mean there is an error, it just means that your code is not styled how it was supposed to be.

What is the meaning of green line in Visual Studio?

Green: The line has been changed and saved. Orange: The line has been changed, saved, and the change undone.


1 Answers

it is because

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

this line

which indicate that you html must be comptiable with the xtml rules.

Rules of XHTML

XHTML elements must be properly nested
XHTML elements must always be closed
XHTML elements must be in lowercase
XHTML documents must have one root element

check it over here : http://www.w3schools.com/xhtml/xhtml_html.asp

like image 161
Pranay Rana Avatar answered Sep 30 '22 17:09

Pranay Rana