Bruce,

I double-checked my syntax quite a lot, in BBEdit, emacs, and xEmacs, and the syntax is all
correct and good.

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

Heredoc syntax is something PHP does just slightly and maddeningly differently from Perl:

http://us2.php.net/manual/en/ language.types.string.php#language.types.string.syntax.heredoc

Typical PHP way:

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;

Typical Perl way:

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

(Note the maddening lack of a semi-colon in the Perl version, and the maddening lack of quotation delimeters in the PHP version, and the maddeningly different number of less-than
signs in each version. ARGH!)

I think this theory might be correct, since of all my HTML elements which have IDs, this <div id="container"> is the only one that actually appears in the function pop-up menu.

Hmmm.

-Carole


On Mar 6, 2006, at 2:40 PM, Bruce Van Allen wrote:

On 3/6/06 Carole E. Mah wrote:
I used to be able to see both my HTML-related Function Pop-up Menu
items and my PHP-related Function Pop-up Menu items, simultaneously.
...
Now, one or the other (mostly) disappears, depending on whether I set
the "Language" tab in Edit->Text Options to 'HTML' or 'PHP'.


Does this happen with every document?

I find that I lose function menu items when I've introduced an
extraneous '{' in a Perl subroutine, making the subroutine appear to
close somewhere in the middle of the next one where it encounters its
final matching '}'.

Drives me to momentary panic when I've checked syntax, found an error at a certain spot, want to look somewhere else, pull down the function menu
-- and half my subs are gone: I've destroyed my script! And of course
it's the very error I'm fixing that's caused the BB function parser to
misinterpret my subroutines.

Just a thought...

- Bruce

__bruce__van_allen__santa_cruz__ca__

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