We have been using template files (*.tpl) for one of our projects, and editing in plain text is always painful. So, here’s a mechanism to use the default Web Editor in Eclipse to edit the files:
- Add filetype association: open Window > Preferences > General > Content Types > Look for ‘HTML’ and add ‘*.tpl’ (without quotes) to associate tpl files with html content type
- Add editor preference: open Window > Preferences > General > Editors > File Associations, and associate the ‘*.tpl’ type with the ‘Web Page Editor’.
This should also work with any other templating type that uses html as the base markup.
And then, code away to glory!

Subscribe via Email
What I'm reading
My Bookmarks
Follow me on twitter
My linkedin profile
2 comments
Comments feed for this article
January 3, 2009 at 9:40 am
Reynaldo
Thanks! I really need it. ;)
January 15, 2009 at 11:58 pm
Using PDT for PHP Development - Diggly Dufus
[...] with Smarty Templates(*.tpl), and more. (KK has a post about associating TPL with HTML editing, you can try that. Or, you can also have the full smartyPDT [...]