Short answer, you can't get there from here, by which I mean, you can't
easily validate the HTML of a document with mixed source, part HTML and
part <?otherlanguage?>.

You should validate the *output* of the code, the rendered page, if
you're concerned about your HTML being correct.

You could come up with a search to turn all embperl into comments so
that Tidy ignores them, then turn them back again. But it's probably not
a good idea, you've got no guarantee your output is good that way.

-----Original Message-----
From: BBEdit-Talk List [mailto:[EMAIL PROTECTED] On Behalf Of
Bill Waggoner
Sent: Thursday, 13 September 2007 9:23 PM
To: BBEdit-Talk List
Subject: HTML with EMBPERL

I haven't been doing many "difficult" things with BBEdit since I got  
it but I seem to have thrown myself a curve.  I have a large web  
page, developed over the last couple of years that has gotten rather  
unwieldy due to several hands being in the "pot"

It's an Embedded Perl document so it has the "usual" embperl  
constructs.  For those unfamiliar with embperl it is a similar form  
of document to PHP, with escape constructs to shift from Perl to HTML  
and back.

What I would like to do is "clean up" the formatting and, hopefully,  
to determine if there are any unbalanced constructs.  I'm especially  
interested in catching something like:

<table>
<tr><td>
<form>
</td>
</tr>
</table>
</form>

Which, I suspect, has happened at least once and, as I understand it,  
is not legitimate (although the browsers may handle it ...)

I downloaded tidy and ran it but it clearly need a bit more care and  
feeding on my part to make it do what I want.  I'm very willing to  
delve into that but am I tilting at windmills?  I thought I'd throw  
this out for advice to this group and, hopefully, save some time  
finding the optimal path.  Where should I be concentrating my efforts?

TIA,

Bill W

-- 
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>




==============================================================================
The information contained in this email and any attachment is confidential and
may contain legally privileged or copyright material.   It is intended only for
the use of the addressee(s).  If you are not the intended recipient of this
email, you are not permitted to disseminate, distribute or copy this email or
any attachments.  If you have received this message in error, please notify the
sender immediately and delete this email from your system.  The ABC does not
represent or warrant that this transmission is secure or virus free.   Before
opening any attachment you should check for viruses.  The ABC's liability is
limited to resupplying any email and attachments
==============================================================================

--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to