Search code examples
phphtmlcode-formattingzend-studio

Is it possible to stop Zend Studio from formatting embedded PHP like this?


I want to upgrade to Zend Studio (currently using Netbeans), but I am slightly disappointed about how the formatter formats PHP in HTML attributes. Given this:

<tr bgcolor="<?php echo "red"; ?>">

Zend Studio will format it similar to this:

<tr bgcolor="<?php
echo "red";
?>">

Has anyone been able to change this behavior? Thank you,


Solution

  • Have you tried using?

    <tr bgcolor="<?= "red" ?>">