Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Balancing Braces via the DW API

New Here ,
May 06, 2008 May 06, 2008
I'm attempting to create my first extension, but I'm running into a bit of trouble. I would like to balance braces from the current selection and then collapse the selected code. Everything's working except for the balance braces part.

When I try to run the dom.source.balanceBracesTextview() function per the API documentation, I get the following error:

"dom.source.balanceBracesTextview() is not a function."

I've attached the function that attempts to do this functionality.

Any help would be most appreciated.

Cheers,
Steve
TOPICS
Server side applications
252
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 08, 2008 May 08, 2008
LATEST
Hi Steve,

> When I try to run the dom.source.balanceBracesTextview() function per the API
> documentation, I get the following error:
>
> "dom.source.balanceBracesTextview() is not a function."

There seems to be a typo in the documentation. Try
balanceBracesTextView() (with a capital V). If you search the DW
Configuration folder, you'll find a few examples.

Also, this exchange is more for DW Server Model and Database stuff.
You'll probably get a better response for extensibility questions in the
macromedia.exchange.extensions.dreamweaver forum.

Randy
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines