Mathieu Dumoulin
Mathieu Dumoulin

Reputation: 12244

Stop HTML format in PhpStorm

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

Answers (1)

Ekaterina Prigara
Ekaterina Prigara

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.

enter image description here

Upvotes: 1

Related Questions