When coding HTML, I use BBEdit's "Check Document Syntax" command quite
frequently. Normally it reports 'No errors', and the checker is extremely
useful to me for finding dumb mistakes or typos as I go along. (I'm still
using BBEdit version 9.6.3, if that matters.)

Recently I've been adding PHP tags to some HTML pages still in development.
(The pages end in ".html" but I've instructed Apache to parse them for PHP
anyway.) Normally the BBEdit validator ignores these PHP tags and there's
no problem. However, in some constructions involving apparently nested
angle brackets < < >, I'm having a small problem with BBEdit warning of
what I call "faux errors."  For example, I might have code like this in my
HTML page:

<a href = <?php createURL("myKeyword") ?> > Lots of link text, image code,
etc. here </a>

...and invoking BBEdit's validator on the HTML page will result in two
errors:

Error: File foobar.html, line 167:
    Unencoded entity found; “<” needs to be encoded as “&lt;”.
Error: File foobar.html, line 167:
    Close element “</a>” found but element wasn't open.

It's perfectly understandable why BBEdit sees these as HTML errors, but in
fact once the PHP is done processing the page, the resultant HTML will be
well-formed with a valid link. The problem for me is that I'm working on
the development code, not the generated code, and if I have to scan through
a lot of these "faux error" messages in order to spot any real errors, it
greatly reduces the utility to me of BBEdit's validator.

I can't find anything in the Preferences that affects this. Is there some
way I can configure BBEdit to ignore all tags in the form <?php blah blah
whatever ?> no matter what context they occur in?

Thanks much,
Lawrence

-- 
-- 
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>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to