Honor HTML Indents in a PHP File

Hello,

I would like my PHP code to be indented with four spaces and HTML with two. Reformatting code in a PHP file does apply the HTML code style; however, PHP style indents are used throughout the file.
So, given a PHP file, is it possible to have HTML indented according to code style settings for HTML files?

Apologies if this has been raised before, though I couldn't find anything related on the forum.

1 comment

I don't think it's possible. In fact, the formatted destroys my HTML indentation when it's in PHP code.  

0

Please sign in to leave a comment.