Insert indented text in Textarea with Codemirror

Asked

Viewed 239 times

1

I’m making an editor HTML in the browser, where the user can write his script in the Database, I recorded all lines of user code in a single string and recorded in the BD, but how do I bring back as user created?

Currently it is like this:

Atualmente está assim

Does anyone know if Codemirror has any function that readjusts this, or another idea ?!

1 answer

2

You can use a HtmlHelper Supports rendering of controls HTML in an exhibition. In his View use it like this:

 @Html.Raw(Model.StringDoBanco)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.