Docs / Find & replace
Find, replace & reformat
Search your markup, replace across the document, and tidy messy HTML with one click.
Two toolbar tools keep your markup tidy: Find & replace for changing text across the document, and Reformat source for cleaning up messy HTML in one click.
Find & replace
Open Find & replace from the toolbar. Type what you're looking for and HTMLOL highlights matches as you go. Add replacement text and use Replace all to change every match at once. Toggle Match case when capitalization matters.
In Code view you can also press ⌘+F for the editor's built-in search.
Reformat source
Pasted in markup that's all on one line, or inherited something with ragged indentation? Reformat source re-indents and tidies your HTML so it's readable again — without changing what it renders. It's the fastest way to make a messy file workable.
Reformat is a pretty-printer: it normalizes whitespace and indentation but preserves your structure and content. Run it after a big paste, then keep editing.