Chris Laplante
Chris Laplante

Reputation: 29658

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,

Upvotes: 2

Views: 686

Answers (2)

Ric
Ric

Reputation: 3458

Few comments about the pros and cons of short tags here: PHP echo vs PHP short tags

Slightly off topic but I recommend you use CSS not bgcolour for your colours etc.

Upvotes: 0

xordon
xordon

Reputation: 5651

Have you tried using?

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

Upvotes: 1

Related Questions