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

Create Wrapped Snippets Hack but still no keyboard support

New Here ,
Dec 06, 2016 Dec 06, 2016

Copy link to clipboard

Copied

So they took away our ability to make wrapped snippets.  Terrible terrible idea.  But here's how you can still create one under Dreamweaver 2017

In windows go to C:\Users\[YOURUSERNAMEHERE]\AppData\Roaming\Adobe\Dreamweaver CC 2017\en_US\Configuration\Snippets

There you will find a folder full of your personal snippets.  Create a new file here.  Let's say you want a wrapped snippet for coldfusion comments.  Let's name the file

coldfusion_comment.csn

Then put the following in the file:

<?xml version="1.0" encoding="utf-8"?>

<snippet name="coldfusion comment" description="" preview="code" type="wrap">

<insertText location="beforeSelection">

<![CDATA[<!--- ]]>

</insertText>

<insertText location="afterSelection"><![CDATA[ --->]]>

</insertText>

</snippet>

There you go.  You will have to re-start dreamweaver to get it to see the new file.

But please please Adobe, I need my keyboard shortcuts!!  This right here is an excellent example why.  I can highlight a bunch of text on the page and push a few buttons and boom... commented out in coldfusion.  Now you've forced me to open a tab and double click something every time.  Extremely annoying.

Views

950

Translate

Translate

Report

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
Community Expert ,
Dec 06, 2016 Dec 06, 2016

Copy link to clipboard

Copied

Thanks for sharing your hack.

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

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
Community Expert ,
Dec 07, 2016 Dec 07, 2016

Copy link to clipboard

Copied

For anyone who wants this feature back, please make sure you let Adobe know by voting on the Feature Request here:

Votes

Translate

Translate

Report

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
Explorer ,
Jan 11, 2017 Jan 11, 2017

Copy link to clipboard

Copied

Thank you for this. I cannot fathom what goes through Adobe's mind when they make these terrible decisions. They take perfectly good products and make them worse. It's clear that their developers aren't using Dreamweaver or they would have known not to take that out.

Votes

Translate

Translate

Report

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
Explorer ,
Apr 14, 2017 Apr 14, 2017

Copy link to clipboard

Copied

LATEST

Here's another solution I've found that people might find a bit easier.

1. Download DW 2015 and open it.

2. Add and/or Edit your snippets there.

3. Close DW 2015.

4. Open DW 2017.

Your new snippets are now available in DW 2017.

Votes

Translate

Translate

Report

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