No indentation in HTML blocks of .phtml files


I wonder if it is possible not to indent the HTML blocks within a .phtml file. But keep this in longer PHP blocks.

An example:

    'viewport', 'width=device-width, initial-scale=1'
        'rel' => 'shortcut icon',
        'href' => '/assets/custom/img/favicon.ico'
<!DOCTYPE html>
<meta charset="utf-8"/>
<?php echo $this->headTitle() . "\n"; ?>
<?php echo $this
->headMeta() . "\n"; ?>
<?php echo $this
->headLink() . "\n"; ?>
<?php echo $this
->headScript() . "\n"; ?>
<?php echo $this
->headStyle() . "\n"; ?>

Is that possible? I can only decide to use the PHP code style or the HTML code style here.

Thanks and best regards.


1 comment
Comment actions Permalink

Currently there is no way to have different indentation styles in single file - see


Please sign in to leave a comment.