We have a few classes that provide the equivalent of editorfor
but surrounded by different HTML. We have one for @Html.CMSEditorFor(m => m.Name)
that uses the same HTML as our content management system and one for @Html.BootstrapEditorFor(m => m.Name)
that churns out HTML in a nice Bootstrap compatible way.
I can't claim any credit for the idea though it comes directly from here. ASP.NET MVC 3 Custom HTML Helpers- Best Practices/Uses