Skip to main content
Z Gibson
Participant
December 6, 2016
Question

Create Wrapped Snippets Hack but still no keyboard support

  • December 6, 2016
  • 4 replies
  • 1056 views

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.

    This topic has been closed for replies.

    4 replies

    Inspiring
    April 14, 2017

    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.

    Known Participant
    January 11, 2017

    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.

    Jon Fritz
    Community Expert
    Community Expert
    December 7, 2016

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

    Nancy OShea
    Community Expert
    Community Expert
    December 6, 2016

    Thanks for sharing your hack.

    Nancy O'Shea— Product User & Community Expert