Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
  • Dreamweaver CS5 with Dreamweaver HTML5 Pack 1.2.7
  • Windows 7 x64

When I go to create a new document and select the HTML5 DocType, Dreamweaver gives me the legacy encoding/character set declaration:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

I want to replace it with the new, abbreviated style:

<meta charset="utf-8">

The relevant file seems to be %ProgramFiles(x86)%\Adobe\Adobe Dreamweaver CS5\configuration\DocumentTypes\NewDocuments\Default.html, which has a blank charset, that is then apparently replaced with the appropriate character set dynamically:

<meta http-equiv="Content-Type" content="text/html; charset=">

I changed it, but then new documents show up like this:

<meta charset="">
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

It seems Dreamweaver added the legacy declaration back in after my modification—and as far as I can tell, there's no way to specify that the charset definition should go in-between the quotes, either. Additionally, any modifications to Default.html apply to every DocType, whereas I only want this change to apply to the HTML5 DocType.

Is there anything in the configuration files that would allow me to make any of these customizations? If not, is there an extension that does it?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.