Welcome to MSDN Blogs Sign in | Join | Help

News

  • These postings are provided "AS IS" with no warranties, and confer no rights. Use of included code samples are subject to the terms specified Terms of Use
Tip #24: Did you know…You could display CSS/HTML errors as warnings or as errors?

VS 2008 has this cool feature of downgrading any CSS/HTML errors to warnings. This is helpful when you want to separate out validation errors and are looking for what is actually stopping your build.

In VS 2008 the default behavior is to display any HTML/CSS errors as warnings as shown in the picture below. Note that warnings have a green squiggle.

Default

The settings for this feature is available under Tools –>Options –>Text Editor –>HTML->Validation as shown below.

ShowErrorsAsWarnings

If you still want your CSS/HTML errors to show up as errors you can uncheck the as warnings (HTML, CSS) check box. By doing this, VS will display it as errors as shown below. Note that error have a red squiggle as shown below.

As Errors

Reshmi Mangalore

SDET, Visual Web Developer

Posted: Saturday, November 15, 2008 1:22 AM by WebDevTools
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker