Jim,

Thank you, but I am still confused.

I changed this:
                <?xml version="1.0" encoding="utf-8"?>

to this (assuming I interpreted your 'escape the ? into hex' instruction correctly):
                <?xml version="1.0" encoding="utf-8"&#x003F;>

Now, even though my Edit->Text Options 'Language' is set to HTML, all I have in my Function Pop-up Menu are the PHP-related things (my PHP functions). None of the
HTML stuff (CSS functions, STYLE, TITLE, h1-h6, etc.) is there at all.

-Carole


On Mar 6, 2006, at 4:05 PM, Jim Correia wrote:

On Mar 6, 2006, at 3:36 PM, Carole E. Mah wrote:

Then I realized that perhaps my use of 'heredoc' syntax may be something the BBEdit
rendering/parsing engine doesn't understand.

[...]

print <<<HTML_STUFF
        <?xml version="1.0" encoding="utf-8"?>
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
        "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
        <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en">
                <head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
                        <title>Foo Bar</title>
                </head>
                <body>
                        <div id="container">
HTML_STUFF;

It isn't the heredoc that is causing the problem, but the contents of it.

BBEdit's HTML function scanner has to isolate blocks of other languages. Currently it does so without intimate syntax/grammer level knowledge of those languages, so for PHP it uses XML PI rules and ends the PHP block at the first occurence of ?>, which occurs in the middle of your heredoc.

You can avoid the problem by escaping the ? into hex.

Jim

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


Carole E. Mah
Senior Programmer/Analyst
Scholarly Technology Group
Computing and Information Services
Brown University
http://www.stg.brown.edu/



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