How to Write the HTML Custom Patteren

How to write the Customer patter for validating below coding standard using Re Sharper

"In the HTML5 standard, the <html> tag and the <body> tag can be omitted.
But, it is not recommended omitting the <html> and <body> tags."

0
2 comments

Hello!

 

Could you please provide more details on the rule you'd like to configure?

Probably some expanded code sample will be helpful.

Thank you.

0
Avatar
Permanently deleted user

Hi Angelina

Thanks for your reply.

As part of the coding standard I would like to validate the below coding standard.

"In the HTML5 standard, the <html> tag and the <body> tag can be omitted.
But, it is not recommended omitting the <html> and <body> tags."

In the resharper I am trying to write the custom pattern.

Resharper --> Option--> Custom Patteren (selected search patteren as "HTML"-->Content placeholder-->

Match Regexp --> html, but this customer pattern is not validating the above said standard. please provide the guidelines how to write the custom pattern

 

 

 

0

Please sign in to leave a comment.