Friday, May 22, 2009

Setup dreamweaver to color code altenate file types

PROBLEM

How to setup an alternate file type in dreamweaver to be colored code?

DESCRIPTION

When using CakePHP, the files internally are php, but with the file extension .ctp, so when open the .ctp file in dreamweaver the file is interpreted as a text file, it would be better if when opening a .ctp file be interpreted as a php file.

SOLUTION

Open the MMDocumentTypes.xml file located in C:\Program Files\Macromedia\Dreamweaver MX\Configuration\DocumentTypes look for the following section:



and change the winfileextension="php,php3" macfileextension="php,php3" for
winfileextension="php,php3,ctp" macfileextension="php,php3,ctp"

and that's all.

PROBLEMA

Como configurar un tipo de archivo alternativo para ser coloreado por código en Dreamweaver?

DESCRIPCIÓN

Cuando se usa CakePHP, los archivos internamente son php, pero las extensiones de los archivos son .ctp, así que cuando se abre un archivo .ctp en dreamweaver, el archivo es interpretado como un archivo de texto, sería muco mejor si cuando se abriera un archivo .ctp fuera interpretado como un archivo php.

SOLUCIÓN

Abra el archivo MMDocumentTypes.xml file localizado en in C:\Archivos de programa\Macromedia\Dreamweaver MX\Configuration\DocumentTypes buscar por la siguiente sección:


y cambie winfileextension="php,php3" macfileextension="php,php3" por
winfileextension="php,php3,ctp" macfileextension="php,php3,ctp"

y eso es todo.

No comments:

Post a Comment