javascript - I want to code the HTML syntax indented and colored like in Visual Studio editor -



javascript - I want to code the HTML syntax indented and colored like in Visual Studio editor -

app: let's take asp.net mvc 3 app.

scope: add together html editor , of them have 2-3 tabs: design, html , preview modes.

result expected: when design in design mode, generated syntax of html markup should appear indented , colored easy edit , read if there lot of elements , attributes.

examples of wysiwyg html editors think are: tinymce; dxperience 2011 vol ii mvc extension - htmleditor; cleditor;

so question is: how obtain generated html syntax indented , colored? perfect result in visual studio editor of aspx or view pages. so, think geeks ? :) appreciate that!

well code highlighting/coloring, many sites using alex gorbatchev's syntax highligher.

http://alexgorbatchev.com/syntaxhighlighter

for indentation - can utilize xdocument's tostring() outlined here:

need tool format html (indent, add together whitespace)

javascript visual-studio-2010 asp.net-mvc-3

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -