-
1. Re: Need help running extension based on event
Danilo Celic Nov 14, 2011 9:11 AM (in response to hessemanj2100)Dreamweaver has keyboard shortcuts which theoretically could be used for something like this, however, Shift+[ (which is the { character) isn't a valid keyboard shortcut, as letter or number key shortcuts require a CTRL (CMD on Mac) as part of the combination. In CS5.5 Adboe added the auto-close for ' and " however, there is no Dreamweaver API call associated with that (at least none that is documented if it exists at all).
You may be able to use the documentEdited function within the Floating panels to be able to accomplish this, but you'd have to be checking for every character typed in code and that will likely be processor intensive for such a small feature. In fact the Floating panel documentation suggest not using documentEdited unless you have too due to potential performance issues.
See the Floating panels docs:
http://help.adobe.com/en_US/dreamweaver/cs/extend/WS5b3ccc516d4fbf351e63e3d117f53d7b3e-7ff d.html
In parcitualr the Floater API functions:
http://help.adobe.com/en_US/dreamweaver/cs/extend/WS5b3ccc516d4fbf351e63e3d117f53d7b3e-7ff c.html
Danilo Celic
-
2. Re: Need help running extension based on event
hessemanj2100 Nov 20, 2011 8:32 PM (in response to Danilo Celic)I will take a look at the Floating panels. By the way, I'm writing a tutorial later to show users how to collapse entire code blocks {..} with the click of one button without adding an extension. It is very simple and easy to do. More on that later.
Danilo, thanks for the assistance. Code Collapse tutorial on the way!
UPDATE 11/20/2011
Dreamweaver CS5 Code Folding

