Page 1 of 1

Create pre-formatted default template?

Posted: 27 Oct 2025 16:38
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!

Re: Moved from HomeSite 4.5

Posted: 27 Oct 2025 18:40
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.)

Re: Create pre-formatted default template?

Posted: 27 Oct 2025 21:34
by pixeldude
Thank you, I'll tinker with that. :)

Re: Create pre-formatted default template?

Posted: 28 Oct 2025 14:54
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.

Re: Create pre-formatted default template?

Posted: 28 Oct 2025 15:19
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 :)