In a html file, there is some code used custom template-language:
Since EAP 13 you can trigger the formatter with the following comments:
// @formatter:off
...
// @formatter:on
To enable it in "surround with", you can define a Live Template in the section "surround" with:
// @formatter:off
$SELECTION$
// @formatter:off
You can find these settings in Settings
-> Code Style
-> General
and set your own trigger words.