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