bUnit icon indicating copy to clipboard operation
bUnit copied to clipboard

Add StringSyntaxAttribute to all methods and properties that take html as input

Open egil opened this issue 3 years ago • 0 comments

The new StringSyntaxAttribute in .net7 signals to IDEs that a certain property/argument/field is a specific type of string, e.g. html, that allows editors to give syntax highlighting and auto completion for strings being assigned/passed to these.

We should decorate all properties and methods arguments that take HTML as input with this attribute.

For versions prior to .net7, I think we can just copy in the attribute ourselves verbatim, and it should work regardless.

Demo from Nick Chapses: https://youtu.be/Y2YOaqSAJAQ

Related: https://github.com/dotnet/runtime/issues/76138

egil avatar Sep 24 '22 21:09 egil