On 7/6/06, Graham Anderson said:

> For example, all DOM methods such as, getElementById or insertBefore, are
> highlighted. I am looking for something similar to the PHP glossary where
> all valid commands/methods are highlighted.

By "highlighted" do you mean they're colored?

There are a couple problems with having the DOM methods 'colored' via syntax
coloring.

First, they're not really a built-in part of the language. That's not a very
strong argument against it, though.

Second, you can create your own functions and methods with exactly the same
names as those in the DOM API, and there would be no way for BBEdit to tell
the difference. They'd all be colored. That certainly wouldn't make it any
easier to spot bugs. (I have a javascript library with a number of object
methods that have identical names to those in the DOM API, and I know I'm
not the only one.)

Now, having said all that, it might be handy if there were a way (even a
"hidden pref") to activate and deactivate syntax coloring for the DOM API in
JavaScript. Maybe. Or even a separate language, like JavaScript DOM, that
you could choose from the language popup.

Seth


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