HTML editor - Post ID 77735

User 274847 Photo


Registered User
3 posts

Can someone point me to how to edit the default code when stating a new blank HTML file, i.e.,


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<!-- Created with the CoffeeCup HTML Editor 2008 -->
<!-- http://www.coffeecup.com/ -->
<!-- Brewed on 2/27/2009 11:06:03 PM -->
<head>
<title></title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
</head>
<body>

</body>
</html>


Thank you.
User 355448 Photo


Ambassador
3,144 posts

Raymond Ruediger,

I don't think the "New blank page" is actually editable, but you can change the doctype from xhtml to html. To make that change, click on tools, click on preferences, make sure you have the General tab selected and midway down the left side of that window is a selection of HTML 4.01 Transitional and XHTML 1.0 Strict.
User 274847 Photo


Registered User
3 posts

Okay thanks, I've looked in every location possible to find an edit this item but no luck. I looked in the program folder for a data file that may hold the blank template information and edit it there but no luck there either. I've used other html editors in the past that I could change this new blank template layout but I guess not here. I guess that would be a program suggestion for future updates. :(
User 463058 Photo


Ambassador
1,073 posts

When I suggested it, i was told they were looking into that option for a future version. I certainly hope so. I had to create my own start pages as templates.
User 117361 Photo


Ambassador
6,076 posts

If I could suggest that you create a snippet with the doc type information you need. I have several snippets prepared in the HTML Editor according to what kind of doc type I am preparing...... whether in xhtml or html in the various flavours of strict, transitional etc.
Then when I open up a new page, I just clean the existing doc information and add in the snippet with the appropriate one.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1"/>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
http://www.w3.org/TR/html4/loose.dtd">


Here are just a couple of examples but I am pretty certain you can create snippets of others you will find on www.w3.org to suit your needs. Bill's suggestion to make your selection in the preferences options is also a good one, but sometimes you need to make other small subtle changes which is why I have my snippets to hand.
User 113629 Photo


Registered User
36 posts

I want to keep this thread alive by posting my request to change the default untitled.html page too.

Maybe CC can add one more option to the default page setting that BillR mentioned. "Your Custom page" would open a customized untitled.html file that would be stored in the CC program directory.

Janys gave a really good suggestion, but for some of us, it would be a real nuisance to make a stack of widgets to prepare our own preferred blank template page.

It would be nice to start with my own blank template, rather than open CC, close the untitled.html file, open my customized blank file and then start working. I have my own preferred headers, footers and preset analytics script among other snippets that are part of all the pages on my primary site. Sure, we are only talking about a few mouse clicks and an extra minute or two. We just want to reduce the mini-annoyance factor during a really busy day.

Even on new sites I like starting with my own template page so I don't forget anything if I get distracted by the phone or any number of daily interruptions.

CC is as unique as the people who use it. We are just asking for the ability to tweak this one feature a bit to fit our personalities.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.