If they aren’t, add them into the top, separating them from the rest of the extensions by commas. If you scan through those, you should find both the ‘TPL’ and ‘INC’ extensions in there. Chances are, they do already and we won’t need to add them, but I’ll write the instructions in here anyway.įirst, look at the multiple lines of all caps letters at the top of the file. If you want, go ahead and run this search as well, then right click on the files and select ‘Edit in Dreamweaver’.īack to the ‘Extensions.txt’ files, we need to edit those in Dreamweaver and we’re going to verify that the ‘TPL’ and ‘INC’ file extensions already exist in these files. Dreamweaver is a 32-bit program, so all of the paths for Dreamweaver will be in the ‘Program Files (x86)’ directory as you’ll see in the screenshots below:Īnd below here is the ‘MMDocumentTypes.xml’ locations, which we will use in step two. In 64-bit environments, instead of having one single ‘Program Files’ section, you have two: one for x86 and one for 圆4. Now in my case, I’m using Windows 7 圆4, so my file structure is a bit different. If Windows XP was a military officer, it’d be a five star general, but it’s retired now and wants to be left alone… I know that there’s excuses for why people don’t want to upgrade (price, proprietary program compatibility, etc.), but Microsoft is moving full steam ahead and as awesome as Windows XP was, it’s been surpassed by Windows 7 and as evidenced by the upcoming Windows 8, things are moving to the touch interface and FAST. Side note: If you’re using Windows XP, you really should upgrade. * where %USER% = whatever your username is Program Files > Adobe > Dreamweaver CS5> configuration > Extensions.txt If you’re using Windows XP, it will be more difficult to find, but typically it will be located at the paths below:ĭocuments and Settings > %USER% > Application Data > Adobe Dreamweaver > Configuration If you’re using Windows Vista or 7, you’re going to be able to search for it on your C:/ (or use the ‘Search in Computer’ option) fairly easily. We first need to locate all instances of ‘Extensions.txt’ file in our filesystem. tpl Extension If It Doesn’t Already Contain the Entries Step One: Modify the Dreamweaver ‘Extensions.txt’ File to Include the. Email me at: mike at or get in touch with me in the comments below. Although, if anybody is willing to port this over for Mac users, I’d gladly incorporate that information into this post and give full credit for it. However, I’m not a Mac aficionado and therefore won’t presume to tell our Mac audience how to correctly perform this modification. As you will see below, there are Mac definitions in the ‘MMDocumentTypes.xml’ file. We need to switch that grouping to PHP, but first we need to make sure that Dreamweaver is in fact recognizing the ‘.tpl’ and ‘.inc’ file extensions to begin with.ĭisclaimer: Before we get into tinkering with these files and potentially causing Dreamweaver to fail to initialize, it’s important to state that we’re strictly dealing with Windows on this. are color-coded into the group of ‘HTML’, meaning that they’ll receive the same color coding, generally blue and LOTS of it.īy the standard definitions (at the time of writing this article, we’re using Dreamweaver CS5 on a Windows 7 install), ‘.tpl’ and ‘.inc’ files are both included into the HTML group. For instance, a typical ‘Extensions.txt’ file will instruct Dreamweaver that a ‘.html’ extension belongs in the ‘All Documents’ setting while ‘MMDocumentTypes.xml’ will say that ‘.html’, ‘.htm’, ‘.shtml’, etc. ‘MMDocumentTypes.xml’ groups those extensions together into color-coding assignments. ‘Extensions.txt’ contains some basic instructions that defines the extensions that are recognized by Dreamweaver. There are two important configuration files that Dreamweaver looks at when it initializes so that the program can determine how to properly color code the user input. All it takes is some modifications to a few Dreamweaver configuration files and voila! Let’s get started.Įxplanation of What the ‘Extensions.txt’ and ‘MMDocumentTypes.xml’ Files Accomplish Well, it turns out that you most certainly can. I thought to myself, ‘hmmm, I wonder if I can force the color-coding of certain file extensions?’ That was going to be too annoying for me and way too much dull blue text to scan through. I quickly learned after opening the first file that Dreamweaver was dead set on color coding these as regular HTML files. tpl files while I was working on a client’s site. Recently, I was needing to edit a LOT of.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |