DamianEdwards / TagHelperStarterWeb

ASP.NET 5 Starter Web project template converted to use Tag Helpers
Apache License 2.0
80 stars 24 forks source link

Syntax colour? #2

Closed VaclavElias closed 9 years ago

VaclavElias commented 9 years ago

I think this TagHelper is really cool thing but to make it easier to differentiate what is HTML and what is not would it be better to highlight somehow what is not HTML?

<a controller="Home" action="Index" class="navbar-brand">Application name</a>

<form controller="Account" action="Login" route-returnurl="@ViewBag.ReturnUrl" method="post" class="form-horizontal" role="form">

For example these: controller="Home" action="Index" controller="Account" action="Login" route-returnurl="@ViewBag.ReturnUrl"

could be with a different opacity (like new using... or something) so without even reading your new HTML you could spot in seconds which HTML tags contains server code. Also, if non-coder is working with HTML then he could get instructions to touch only HTML otherwise he might get slap his fingers if he modifies server code.

Don't ask me how to do it :)

Thanks :)

DamianEdwards commented 9 years ago

We fully intend to have extensive tooling support for Tag Helpers in Visual Studio 2015 when it RTMs. We won't put Tag Helpers into the project templates until this happens as it's not a very pleasant experience right now as you've pointed out :smile:

Once we do get support, you'll enjoy:

Rest assured, as soon as it's checked in and I can install it, I'll be tweeting out a screenshot for all to see :smile:

VaclavElias commented 9 years ago

Sounds good! Thanks :)

On 26 February 2015 at 06:47, Damian Edwards notifications@github.com wrote:

We fully intend to have extensive tooling support for Tag Helpers in Visual Studio 2015 when it RTMs. We won't put Tag Helpers into the project templates until this happens as it's not a very pleasant experience right now as you've pointed out [image: :smile:]

Once we do get support, you'll enjoy:

  • Statement completion for Tag Helper directives, e.g. @addTagHelper
  • Statement completion for Tag Helper elements and attributes including descriptions
  • Classification of Tag Helper elements (so you can make them a different color, etc.)
  • Full IntelliSense inside Tag Helper attribute values, which are actually C# (as if you typed @)

Rest assured, as soon as it's checked in and I can install it, I'll be tweeting out a screenshot for all to see [image: :smile:]

— Reply to this email directly or view it on GitHub https://github.com/DamianEdwards/TagHelperStarterWeb/issues/2#issuecomment-76130446 .