Hongmu Notes

⌨️ HTML formatting

Paste the HTML source code and rearrange it according to the selected indentation unit, leaving the original content unchanged.

HTML formatting

Instructions for use

  • First select the indentation unit, then paste the HTML and click "Start Processing"
  • Keep scripts, styles and comments as they are, only adjust the indentation
  • Formatting is done using local libraries, and the code will not be uploaded to the server.

Paste the HTML code back into the editor

The compiled code usually needs to be pasted back into the editor or work order immediately. Whether the copying is smooth directly affects efficiency. The result box is read-only, and the button takes away the entire content at once.

📌 Copy the content taken by the button

Copy all the formatting codes in the result box at once, excluding the original input text and prompt text; when the result is empty, the button will prompt you to format first to avoid pasting the blanks back into the editor.

🔒 Dealing with location and privacy

Formatting is completed using a local library loaded with the page, and the code is not uploaded to the server or written to local storage; page fragments and email templates from the internal system can be pasted with confidence, and the page will be cleared after the processing is completed, leaving no cached copies.

📌 Indentation rules

Formatting determines indentation based on the nesting level of tags: each time a sub-element is entered, one indentation unit is added, and when a closed tag is encountered, it is returned one level; text nodes and inline tags will not be forcibly split, so short fragments will remain compact, and tag attributes and text content will not be rewritten.

All keywords and tutorials 12

❓ FAQ

Will the indentation be lost after copying?
No. Indentation and line breaks are part of the result and remain intact after pasting.
Can I just copy a section?
Yes. Manually select the required part in the result box and copy it. The button will remove all by default.