Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to selectively suppress markup validation in Visual Studio?

Sometimes I find it useful to be able to suppress certain markup validation warnings within files that contain HTML (ASPX, etc.).

Is there an equivalent of #pragma warning disable\restore for HTML?

like image 497
Saeb Amini Avatar asked Jan 12 '12 16:01

Saeb Amini


People also ask

How do I suppress an error in Visual Studio?

Suppress specific warnings for Visual C# or F# Or, select the project node and press Alt+Enter. Choose Build, and go to the Errors and warnings subsection. In the Suppress warnings or Suppress specific warnings box, specify the error codes of the warnings that you want to suppress, separated by semicolons.


1 Answers

There are similar questions around, see this and that.

Unfortunately there is no solution to do it selectively. Only a global turn-off of the validation will hide those warnings.

like image 79
Dio F Avatar answered Oct 13 '22 00:10

Dio F