Right-Click-> New HTML5 document?
Yo,
Been doin mainly web dev for the past year and it occurs to me: Why can't I right-click on my desktop and have a New HTML document show up? Just an empty shell with all the markup.
So, does anyone know of a way to get that? Maybe someone wrote a cool utility for that...? Ideally the result would be a new HTML5 document.
Thanks!
Re: Right-Click-> New HTML5 document?
You could just create a template file for yourself: right-click on template file, copy, paste, rename it and start editing.
Re: Right-Click-> New HTML5 document?
Re: Right-Click-> New HTML5 document?
Quote:
Originally Posted by
Dave Sell
Where are they located?
if you read what he said:
Quote:
Originally Posted by
SambaNeko
You could just create a template file for yourself: right-click on template file, copy, paste, rename it and start editing.
Then you'd know where it was, it'd be where you saved the template(s) when you create them.
Re: Right-Click-> New HTML5 document?
I neither created a template nor saved one. I thought he was referring to some files built into windows somewhere on the FS...
Re: Right-Click-> New HTML5 document?
Nope, I meant to make a template file for yourself - you can customize it as much or as little as you want for your needs, then just keep it somewhere (on the desktop if you'd like) and make a duplicate copy when you start a new page.
Re: Right-Click-> New HTML5 document?
I guess I don't know what you mean by "Make a Temlate File" - you mean from MSWord? Or you mean just make the file once, then copy it later...
Re: Right-Click-> New HTML5 document?
Create a text file, put the HTML you'd like to use as the starting point for future HTML files, and name it "template.htm." Place this file on your desktop, or in another convenient-to-you location. When you want to create a new HTML file, copy and paste this file, and then rename it.
A 'starting point' for an HTML 5 document could look like:
HTML Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="author" content="Your name?" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<title>Your title</title>
<link href="css/styles.css" type="text/css" rel="stylesheet" media="all" />
<link href="favicon.ico" rel="shortcut icon" />
</head>
<body>
<!-- Place content here -->
</body>
</html>
Re: Right-Click-> New HTML5 document?
Quote:
Originally Posted by
Dave Sell
I guess I don't know what you mean by "Make a Temlate File" - you mean from MSWord? Or you mean just make the file once, then copy it later...
Well, just make a file that's a basic shell for what you'd need for an html5 file (make a template file), it looks like the basics aren't all that different for html5 as it has been for years:
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>HTML5!</title>
<!--<link rel="stylesheet" href="css/main.css" type="text/css" />-->
</head>
<body id="index">
</body>
</html>
Re: Right-Click-> New HTML5 document?
Sounds like you want ShellNew in the Registry, to get a new item in the "New" context menu.
http://support.microsoft.com/kb/140333
Re: Right-Click-> New HTML5 document?
Quote:
Originally Posted by
tr333
You sir, are awesome! I believe that is exactly what I am looking for; maybe I should have posted to a different forums... I will try this later this week and resolve it, thanks.
Re: Right-Click-> New HTML5 document?
Glad that tr333 pointed that out; looks like you'll still need a template HTML file though, and I'd recommend using the markup that kows posted for that.
Re: Right-Click-> New HTML5 document?
Quote:
Originally Posted by
SambaNeko
looks like you'll still need a template HTML file though, and I'd recommend using the markup that kows posted for that.
Yes. You put your template file into the ShellNew folder, and it will (after doing the appropriate registry configuration) allow you to right-click on the desktop and select "New->HTML5 File" as you currently would for a Text Document, etc.