Control M would be a nice feature.  You may already know about this feature which is 
similar.  Beneath the file name tabs and above the properties window is a list of tags 
in the document.  If you click one of these tags, it will highlight everything between 
the tags.

-----Original Message-----
From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 09, 2003 8:50 AM
To: CF-Talk
Subject: RE: How to add shortcuts to snippets in DW MX


Massimo,

Since you seem to know a lot about some pretty complicated issues in dreamweaver maybe 
you can provide an answer.

Do you know of any way to add the Ctrl-M feature of CFStudio and Homesite (when in a 
tag, jump to it's closing tag)?

I have to review and maintain a LOT of code created by contractors and this feature is 
critical.  It's the only reason why I haven't moved to dreamweaver mx (it's installed, 
just not used).  I'm using homesite+ instead.

Thanks,

Steve


-----Original Message-----
From: Massimo, Tiziana e Federica [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 08, 2003 10:37 AM
To: CF-Talk
Subject: How to add shortcuts to snippets in DW MX


I know many people complain about this, so, since I tried to cover the issue in the 
past, I summarized everything in a single post. I hope it could be help to fellow 
developers. Please be free to share this everywhere and post it on blogs as you see 
fit (if possible include the whole post, no editing
please)

Adding keyboard shortcuts to snippets is possible with DW MX as well, it's just a 
painful process... Here it is:

1) Go in Design View (in order to enable the History Panel)

2) Insert a Snippet

3) Now inside the History Panel you should have an entry for the snippets insertion

4) Select the entry in the panel and, from the contextual menu, choose "Copy Steps"

5) Open an external text editor (Notepad would be fine) and paste

6) Inside the text editor you should now see the API call to the snippet, something 
like this:

dw.snippetPalette.insertSnippet('MyFolder\\MySnippet.csn');

7) Quit DW

8) Open the monster menus.xml file inside you local configuration,
typically:

C:\Documents and Settings\<username>\Application Data\Macromedia\Dreamweaver 
MX\Configuration\Menus\Menus.xml

For more details read:

http://www.macromedia.com/support/dreamweaver/ts/documents/multiuser.htm

9) At the very top of the monster menus.xml you can find many entries for keyboard 
shortcuts, add something along these lines:

<shortcut key="your key combination here" 
command="dw.snippetPalette.insertSnippet('MyFolder\\MySnippet.csn')"
name="My powerful snippet" id="anUniqueID" />

10) Restart DW, you are done


Final notes:

- Be careful editing menus.xml, never open it in DW!

- Always back up the menus file, DW does it automatically (see Menus.xbk)

- Be careful identifying keyboard combination not already in use

- Each id inside menus.xml must be unique, valid JavaScript variable name


My considerations:

Q: Is it worth?
A: It depends, for me it isn't, but I am definitely a mouse user

Q: Is it a painstaking process?
A: Yes, it is

Q: Shouldn't be easier?
A: Yes, sure, anything is better than this

Q: Shouldn't DW expose this capability from a GUI?
A: Sure, I vote for it!

Q: What we can do?
A: Ask MM, send them hundreds of requests:

http://www.macromedia.com/support/email/wishform/

----------------------------
Massimo Foti
Certified Dreamweaver MX Developer
Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/
----------------------------



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to