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:
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
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".
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.
Green: The line has been changed and saved. Orange: The line has been changed, saved, and the change undone.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With