Skip to main content
Known Participant
October 29, 2020
Answered

Modify New Document Type: Source file

  • October 29, 2020
  • 8 replies
  • 530 views

Back in August I called TS and had to insist give me an answer. He finally gave me the solution. My mistake I didn’t document the solution. Now I updated to V21 and V20 is gone and I need to redo the fix and can’t remember the solution. I’ve talked to 3 different TS people. The 1st I had to insist there was a solution because it was solved back in August. He sent me to C:\Users\mycomputer\AppData\Roaming\Adobe\Dreamweaver 2021\en_US\Configuration. Couldn’t find what I wanted. The 2nd gave me an article that solved what she though I asked. The next said he couldn’t help because Adobe didn’t give them an answer in their data base.

 

The problem.

If you go to File > New and select New Document </> HTML you get:

Untitled-1

1 <!doctype html>

2 <html>

3 <head>

4 <meta charset="utf-8">

5 <title>Untitled Document</title>

6 </head>

7

8 <body>

9 </body>

10 </html>

11

 

I want to edit this file. I believe it is located in C:Program Files > Adobe > Adobe Dreamweaver 2021.

No I’m not looking to save the above as index.htlm, I want to modify the original that Adobe has somewhere on the system.

Hope I’m clear.

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer Jon Fritz

    The files you are looking for are at...

    C > Program Files > Adobe > Adobe Dreamweaver 2021 > configuration > Document Types > NewDocuments 

    If you only work with .html files, you only need to modify the "Default.html" file. For myself, I edit Default.html and Default.php and that covers any file I might make when I go to File > New.

    8 replies

    Legend
    October 30, 2020

    You want to look here I believe: C:\Program Files\Adobe\Adobe Dreamweaver 2021\configuration\DocumentTypes\NewDocuments\

     

    look for default.html, default.php etc depending on which  new file type you want to edit.

    Paul-M - Community Expert
    Nancy OShea
    Community Expert
    Community Expert
    October 29, 2020

    In other words, you're looking for the file that generates a default HTML starter document.  I honestly don't know where to find that. I never mess with those files.

     

    To keep things simple, I save re-usable code to my Custom Snippets folder which is located in:

    C:\Users > [name] > AppData > Roaming > Adobe > Dreamweaver [ver] > [language] > Configuration > Snippets > Custom. 

     

    My snippets ported over just fine to ver 21.0.  But I kept ver 20 just in case I need it later.

     

    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Jon FritzCommunity ExpertCorrect answer
    Community Expert
    October 29, 2020

    The files you are looking for are at...

    C > Program Files > Adobe > Adobe Dreamweaver 2021 > configuration > Document Types > NewDocuments 

    If you only work with .html files, you only need to modify the "Default.html" file. For myself, I edit Default.html and Default.php and that covers any file I might make when I go to File > New.

    cyclerAuthor
    Known Participant
    October 30, 2020

    Thanks! What I was looking for. Don't know how I missed it. 🙂

    cyclerAuthor
    Known Participant
    October 30, 2020

    Opened up the default.html and default.php and they were html4 not html5 so while close aren't what Dreamweaver 21 uses. 😞