>
> When I'm coding php mixed with html, like this;
>> <div class="span-14" id="content-standard<?=$style_variant?>">
>> the starting and closing php thing (<?/<?php and ?>) isn't displayed
>> with color red, as it normally does.
>>
>
> Try coding the html correctly. You have not closed the ID tag so it sees
> the php as part of the tag. If you code
> id="content-standard" <?=$style_variant?> >
> You might get better results. I assume that $style_variant is a style=
> parm.
I'm not sure that's a correct assumption.
<?php $style_variant = "_foo" ?>
<div class="span-14" id="content-standard<?=$style_variant?>">
outputs:
<div class="span-14" id="content-standard-foo">
which I assume is exactly what the OP wants.
What seems to be happening is that, in both PHP and HTML mode, BBEdit's
syntax coloring gives string constants precedence over processing
instructions—meaning that the <? tags are ignored while they're between a
pair of quotation marks. Since the PHP interpreter *doesn't* ignore those
tags, it's not unreasonable to wish BBEdit might recognize them.
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>