Re: Dreamweaver - Getting Code Coloring and Design View to work on CTP files

2013-01-24 Thread Luke Coburn
Does anyone know if this type of solution will work in CS6?  I have spent 
way too much time trying to get this working, and...no dice.  I can get the 
file to open in Dreamweaver, but the color coding and code hinting won't 
work at all.  Very frustrating.

I am using a Mac, running OSX Mountain Lion and Dreamweaver CS6 (version 
12).

I have added the CTP extension to:

/Users/[username]/Library/Application Support/Adobe/Dreamweaver 
CS6/en_US/Configuration/Extensions.txt
/Users/[username]/Library/Application Support/Adobe/Dreamweaver 
CS6/en_US/Configuration-1/Extensions.txt (I don't even know why this folder 
exists)
/Applications/Adobe Dreamweaver CS6/Configuration/Extensions.txt
/Applications/Adobe Dreamweaver 
CS6/Configuration/DocumentTypes/MMDocumentTypes.xml

I have tried adding it as HTML files and PHP files.  I have tried every 
combination that I can think of.  I have tried including THTML as well as 
CTP to the lists.  I have restarted Dreamweaver after each change.  Nothing 
seems to be working.  Nothing in Dreamweaver seems to be changing at all.

I also can't find any recent threads addressing this issue in CS6.  All 
these posts seem to be dated a few years ago.  Am I the only one trying to 
edit CTP files any more?

Any help would be greatly appreciated.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Dreamweaver - Getting Code Coloring and Design View to work on CTP files

2013-01-24 Thread Saran Pal
Hi,

I have done it recently, will provide all the info about it.


On Wed, Jan 23, 2013 at 10:18 PM, Luke Coburn upe...@gmail.com wrote:

 Does anyone know if this type of solution will work in CS6?  I have spent
 way too much time trying to get this working, and...no dice.  I can get the
 file to open in Dreamweaver, but the color coding and code hinting won't
 work at all.  Very frustrating.

 I am using a Mac, running OSX Mountain Lion and Dreamweaver CS6 (version
 12).

 I have added the CTP extension to:

 /Users/[username]/Library/Application Support/Adobe/Dreamweaver
 CS6/en_US/Configuration/Extensions.txt
 /Users/[username]/Library/Application Support/Adobe/Dreamweaver
 CS6/en_US/Configuration-1/Extensions.txt (I don't even know why this folder
 exists)
 /Applications/Adobe Dreamweaver CS6/Configuration/Extensions.txt
 /Applications/Adobe Dreamweaver
 CS6/Configuration/DocumentTypes/MMDocumentTypes.xml

 I have tried adding it as HTML files and PHP files.  I have tried every
 combination that I can think of.  I have tried including THTML as well as
 CTP to the lists.  I have restarted Dreamweaver after each change.  Nothing
 seems to be working.  Nothing in Dreamweaver seems to be changing at all.

 I also can't find any recent threads addressing this issue in CS6.  All
 these posts seem to be dated a few years ago.  Am I the only one trying to
 edit CTP files any more?

 Any help would be greatly appreciated.

 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To post to this group, send email to cake-php@googlegroups.com.
 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.




-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Dreamweaver - Getting Code Coloring and Design View to work on CTP files

2009-02-07 Thread Leonard Teo

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Dreamweaver - Getting Code Coloring and Design View to work on CTP files

2009-02-07 Thread mohammad al-ani
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 teo.leon...@gmail.com 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Dreamweaver - Getting Code Coloring and Design View to work on CTP files

2009-02-07 Thread mohammad al-ani
hi i found it in notepad++ just open langs.xml in installation directory and
search for the php word and you will get the language node like this

Language name=php ext=php php3 phtml commentLine=// commentStart=/*
commentEnd=*/

add the extension ctp in the extension attribute like this

Language name=php ext=php php3 phtml ctp commentLine=//
commentStart=/* commentEnd=*/

and have cool programming : )

On Sat, Feb 7, 2009 at 11:45 PM, mohammad al-ani
alani.moham...@gmail.comwrote:

 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 teo.leon...@gmail.com 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---