thank you for this powerful tip. and I hope to get a same as it to coloring ctp file with notepad++
On Sat, Feb 7, 2009 at 9:19 PM, Leonard Teo <[email protected]> wrote: > > Just adding here so that others can find the information later.... > > If you use Dreamweaver, by default, you'll find that you can't fire up > your views in the code or design views. Using Dreamweaver preferences, > you can set it up so that Dreamweaver will load the file but you will > not get code coloring, and you will not be able to preview it in > design view. > > This tip will give you the best of both: > - View CTP and THTML files in code view with PHP syntax coloring > - View CTP and THTML files in Design view > > > Adobe Knowledge Base > http://www.adobe.com/go/tn_16410 > > > You edit two files: > 1. Extensions.txt - On Vista, this is in your USER directory, NOT the > one in the main Dreamweaver directory. > > E.g.: > C:\Users\[Your Username]\AppData\Roaming\Adobe\Dreamweaver CS4\en_US > \Configuration > > Edit the first line that defines all the documents. > Add, ",CTP,THTML" before ":All Documents" (note the capital letters) > > Find the PHP line and add ",CTP,THTML" before ":PHP Files" > > Save > > 2. MMDocumentTypes.xml > is here: C:\Program Files\Adobe\Adobe Dreamweaver CS4\configuration > \DocumentTypes > > If you try to edit this on Vista, it will say that you don't have > permission - right click on the file, set the security permissions to > allow you to edit it. > > Search for "<documenttype id="PHP_MySQL" " > > On this line, there are two parameters: > winfileextension="php,php3,php4,php5" > - Add ",ctp,thtml" to this parameter > > macfileextension="php,php3,php4,php5" > - Add ",ctp,thtml" to this parameter > > Save > > Restart Dreamweaver > > You'll now notice that your *.ctp files have an icon and isn't a blank > white file. You can double click on them and they will open up, and > you can view it in Design view. > > > > Enjoy, > > Leo > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
