Reputation: 12244
HTML formatting can't seem to fit our needs and is always crapping out our code. I wish I could turn it out but can't seem to find the way to do it.
I still want my PHP code to be formatted in HTML templates but I don't want PhpStorm to format my HTML anymore.
Is there a way to do this?
Upvotes: 1
Views: 672
Reputation: 4957
You can disable formatter for a particular code fragments using @formatter:off
and @formatter:on
markers. Make sure they are enabled in Preferences | Editor | Code Style - Formatter control.
Upvotes: 1