Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1640

Adding real formatting for HTML

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 8.2, 10.0
    • None
    • web - HTML Editor
    • None

    Description

      As you can see it in the external ticket and in this one: https://netbeans.org/bugzilla/show_bug.cgi?id=249760 it is not possible to format a one line, minifed HTML back to the original one. Or any other code snippets, that you copied from somewhere else.

      In JSON this is working great, a one line JSON, will format and beautify the JSON to a more readable one.

      In HTML it will only fix indentation but will not beautify minified HTML.

      So this:

      <div><div><ul><li></li></ul></div></div>

      Should expand to:

      <div>
          <div>
              <ul>
                  <li></li>
              </ul>
          </div>
      </div>
      

      Please let me know whether you need more information.

      Cheers

      Chris

      Attachments

        Activity

          People

            Unassigned Unassigned
            chrizzly Christian Lenz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: