Create pre-formatted default template?

Ask how to do things or if a certain feature is available in the program.
Post Reply
pixeldude
Posts: 2
Joined: 27 Oct 2025 16:33

Create pre-formatted default template?

Post by pixeldude »

Hi all,

Very glad to find a successor to Allaire's HomeSite CSS/HTML editor! I know... :)

I have a few questions, the first being: how could I create a starter pre-formatted template that opens every time I create a new file/project? In HomeSite, I have this right now. ▼ How could I replicate this:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>Untitled</title>
</head>
<body>

</body>
</html>
Thank you in advance!
User avatar
pjj
Posts: 2269
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Moved from HomeSite 4.5

Post by pjj »

I don't know if such thing is possible right now, I see no entry for that in Options. I can see that years ago jerry1970 wrote a script for this and... that's it, I guess. You can file in a feature request to always load a user-defined template into the newly opened file (based on its extension).

For now you can do something on your own, though, namely define a Text Clip (View > Panels > Text Clips) with your desired template and attach a shortcut to it. Now, when you open a new file, press your shortcut and said template will be pasted into it.

(You can also save a file as a template and open it from the main toolbar, "Create a new file" icon with a dropdown, but then you'd have to remember to use "Save as" to not overwrite it; not very handy solution in the long run, I must say.)
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
pixeldude
Posts: 2
Joined: 27 Oct 2025 16:33

Re: Create pre-formatted default template?

Post by pixeldude »

Thank you, I'll tinker with that. :)
User avatar
Rickard Johansson
Site Admin
Posts: 6908
Joined: 19 Jul 2006 14:29

Re: Create pre-formatted default template?

Post by Rickard Johansson »

pjj wrote:(You can also save a file as a template and open it from the main toolbar, "Create a new file" icon with a dropdown, but then you'd have to remember to use "Save as" to not overwrite it; not very handy solution in the long run, I must say.)
No need to use "Save As..." when using templates. The "Save As" dialog is automatically opened when you save the document the first time.
User avatar
pjj
Posts: 2269
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Create pre-formatted default template?

Post by pjj »

Rickard Johansson wrote: 28 Oct 2025 14:54 No need to use "Save As..." when using templates. The "Save As" dialog is automatically opened when you save the document the first time.
Just tried it out and can confirm, so I stand corrected :)
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
Post Reply