I'd like to be able to easily insert a DOCTYPE for some version of HTML or XHTML, while editing an HTML/XHTML file. This could be implemented in any of a few ways:
1. Right-click in file, "Change DOCTYPE" - would be messy, would clutter context menu
2. Intention which appears when cursor is at the top of the file
3. Completed when pressing Ctrl+Space at top of the file or when anywhere inside <!DOCTYPE
4. Code menu or Tools menu item
In the menu, IDEA would show a menu containing "XHTML 1.0 Strict" "XHTML 1.0 Transitional" "HTML 4.0 Strict" etc, and when I chose one, IDEA would replace any existing DOCTYPE declaration and replace it with the appropriate new DOCTYPE.
The current URI completion is unsatisfactory, even almost useless because the public ID must be entered manually, which a user is equally likely to know by heart as the URI.