Skip to main content
Participant
July 9, 2017
Question

Dreamweaver CC 2017 emmet filters & preferences

  • July 9, 2017
  • 0 replies
  • 226 views

How can I go about editing the emmet filters and preferences?

Specifically, what I'm looking to edit is the coment tag filter. An example:

body+c>#container+c>span.label+c

should will expand out to:

<body>

   <div id="container">

       <span class="label"></span>

       <!-- /.label -->

   </div>

   <!-- /#container -->

</body>

<!-- /body>

This is defined in the emmet preferences by the filter.commentAfter property, which defaults to:

'\n<!-- /<%= attr("id", "#") %><%= attr("class", ".") %> -->'

I would like to change this filter to

' <!-- <%= attr("id", "#") %><%= attr("class", ".") %> -->'

This will accomplish 3 things:

  1. Get rid of the carriage return in the comment and place it on the same line as the closing tag
  2. Put a space between the closing tag and the comment
  3. get rid of the forward slash prior to the entity name

However, I see no option within Dreamweaver to configure this, and cannot see where the preferences.json would go to extend this functionality as intended.

This topic has been closed for replies.