I have an open source application. The application uses smarty templates. The problem is I am unabe to open .tpl files with Dreamweaver. Is there any other editor/software available to edit smarty templates?
[RESOLVED] Unable to open .tpl files
Assuming these .tpl files are plain text files, any text editor should be able to open and edit them (such as Windows' Notepad). I'm no DreamWeaver expert, but I find it hard to believe it cannot open any text file for editing just because it has a .tpl suffix. Are you sure it's not some sort of file permission problem?
You CAN open .tpl with Dreamweaver you just have to add them to your extensions list.
Here's how to do that:
Edit->Preferences(OR CTRL+U)->File Types/Editors
Theres a text box that says Open In Code View, you should have a list like this:
.js .asa .css .cs .config .inc .txt .as .asc .asr
just add .tpl to the end of that so it looks like this:
.js .asa .css .cs .config .inc .txt .as .asc .asr .tpl
And NogDog, for some reason or another dreamweaver doesn't check for file types, it only uses the extension. So if I had an mp3 and renamed it to song1.dwt(dreamweaver template) dw would still try to open it as a template. Its really weird
Good tip shawk, I use this method to open .htaccess files, tpl's txt and virtually any ascii based file..
miramardesign
http://miramardesign.com
I code therefore I am.
Thank You NogDog. You have solved my problem.