I have added a new file template to Aptana Studio 3.0.4 as described in this documentation section: http://wiki.appcelerator.org/display/tis/Creating+a+new+template
The new template now shows up when I select File->New->File and enter an appropriate filename. So far so good.
Now I'd like my new template to show up in the File->New From Template listing. I have not been able to locate any documentation that explains how to do this.
Ok this is actually fairly simple. For my example I will be creating an alternative php file template with a html5 structure.
Printed at the bottom of the file is the structure:
template "PHP Template" do |t|
t.filetype = "*.php"
t.location = "templates/template.php"
end
Copy and paste it below changing the template to phpHTML5 the following changes:
template "PHP Template" do |t|
t.filetype = "*.php"
t.location = "templates/phpHTML5.php"
end
7. Save and Restart Aptana.
NOTE: You may 'delete' the project PHP but be careful to deselect the "Delete project contents on disk(cannot be undone)" otherwise you will be in trouble...
Any problems with this just let me know, and I will see if I can help with the rest.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With