You could use the [DataType]
attribute on your view model like this:
public class MyViewModel
{
[DataType(DataType.MultilineText)]
public string Text { get; set; }
}
and then you could have a controller:
public class HomeController : Controller
{
public ActionResult Index()
{
return View(new MyViewModel());
}
}
and a view which does what you want:
@model AppName.Models.MyViewModel
@using (Html.BeginForm())
{
@Html.EditorFor(x => x.Text)
<input type="submit" value="OK" />
}