5

I'm looking for a web-based HTML editor. I am NOT looking for a WYSIWYG editor. The author needs to be able to edit the HTML directly, and I'm looking for features like syntax highlighting, tag auto-completion, whitespace formatting - stuff you'd expect in a typical IDE. It also needs to be able to edit HTML snippets that aren't necessarily valid HTML on their own (for example, just a table row without table tags) without puking.

Does anything like this exist?

j0k
  • 21,914
  • 28
  • 75
  • 84
Daniel Schaffer
  • 52,912
  • 28
  • 108
  • 161

4 Answers4

2

markItUp!

markItUp! is a JavaScript plugin built on the jQuery library. It allows you to turn any textarea into a markup editor. Html, Textile, Wiki Syntax, Markdown, BBcode or even your own Markup system can be easily implemented.

CodeMirror

CodeMirror is a JavaScript library that can be used to create a relatively pleasant editor interface for code-like content ― computer programs, HTML markup, and similar. If a mode has been written for the language you are editing, the code will be coloured, and the editor will optionally help you with indentation.

Chris Fulstow
  • 38,141
  • 9
  • 83
  • 109
1

The closest thing I can think of is ACE http://ace.ajax.org/, which is a merger of the original product from ajax.org and Mozilla Bespin.

Dan
  • 374
  • 1
  • 2
0
[WebMethod(EnableSession = true)]
public void GetUpcomingEvents(string EventType, string Keyword)
{
    DataTable dt = sqlHelper.ExecuteDataTable("Sp_EventDescription", CommandType.StoredProcedure, new SqlParameter[]{
    new SqlParameter("@mode", 20),
    new SqlParameter("@EventType", EventType),
    new SqlParameter("@Keyword", string.IsNullOrEmpty(Keyword) ? null : Keyword),
    new SqlParameter("@CityId", Session["MasterCity"])
    });
    Context.Response.Clear();
    Context.Response.Write(JsonConvert.SerializeObject(dt, Formatting.Indented));
    Context.Response.Flush();
    Context.Response.End();
}
Tunaki
  • 116,530
  • 39
  • 281
  • 370
  • While this code may answer the question, providing additional context regarding how and/or why it solves the problem would improve the answer's long-term value. – Donald Duck Mar 17 '17 at 08:34
0

You could use Notepad++ and configure TextFX settings for tag auto-completion and whitespace formatting (I'm guessing auto-indent?).

kevinji
  • 9,983
  • 4
  • 35
  • 55