...
HTML file formatting is configured via Window->Preferences, Web->HTML Files->Editor. The following attachment shows a screenshot of how HTML formatting should be configured. Additionally, in the "inline elements" list, remove "a" and "span" as it makes for better formatting.
Other files
If formatters for other files are needed, more details should be added to this document.
...