Along similar, but slightly different lines, is there a way to get BBEdit's
syntax coloring engine to work in a situation such as the following example,
where I'm testing to see whether or not to add an id attribute to an <li> tag?
<ul id="nav_alpha">
<?php
$letters = range('a', 'z');
foreach ($letters as $first_letter) : ?>
<li<?php
if([condition1])
{
echo '';
}
elseif ([condition2])
{
echo ' id="my_id"';
}
?>
></li>
<?php endforeach; ?>
</ul>
On Jan 22, 2010, at 12:51 PM, Jim Correia wrote:
> On Jan 22, 2010, at 1:22 PM, Alan Storm wrote:
>
>> The follow screenshot is a simplified version of a PHP view file I was
>> recently working on with "HTML" selected as the language (actual text
>> included at the end of this email)
>>
>> http://alanstorm.com/testbed/as_html.png
>>
>> On line 17 the syntax highlighting goes pear shaped. (note the
>> different color <p> tags)
>
> BBEdit’s syntax coloring engine always use the HTML rule for ending non-HTML
> data sections.
>
> See <http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.3.2> for details.
>
> Instead, write the line as:
>
> jQuery('#row_detail_'+numeric_id+' td').html('<p>Loading<\/p>’);
>
> - Jim
>
> --
> 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.
--
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.