Код: Выделить всё
StreamReader reader = new StreamReader(item.DownloadFile());
string raw = reader.ReadToEnd();
file.Contents = raw;
Код: Выделить всё
HttpUtility.HtmlEncode(file.Contents);
Код: Выделить всё
@Html.Raw(Model.Contents)
Как можно я вывожу исходный код так, чтобы отступы и символы новой строки оставались неизменными?
Подробнее здесь: https://stackoverflow.com/questions/211 ... whitespace
Мобильная версия