I was wondering (if possible) if there was a program/tool/utility that when I create a new file and provide it with an extension that it creates the appropriate tags automatically?
For example, a new file I create called index.php would have the appropriate tags auto-generated inside:
<?php
?>
I hope you get the idea.
Any information regarding this would be helpful.
I don’t know about a portable utility, but on Windows, there’s a built-in feature that does it.
From
regedit, go to yourHKCR/.your-extension(e.g.HKCR/.php). the(Default)value will contain the filetype class – go to eitherHKCR/.your-extension/the-filetype-classorHKCR/the-filetype-class(either will do), then inside create a key namedShellNew. In the key, create a string value calledFileNameand assign to it the file path of your template file.Now all new files with this particular extension will be created containing the contents of your template.
Here’s a more detailed tutorial.