cakephp模板文件(ctp扩展名) [英] cakephp template files (ctp extension)

查看:186
本文介绍了cakephp模板文件(ctp扩展名)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在microsoft表达式web 3中编辑cakephp模板文件(ctp扩展名)?
此文件包含混合的php和html代码。

当我尝试打开此文件时,我请参阅"粘贴文字"对话。
我需要将其作为普通的php文档打开。

How can i edit cakephp template files (ctp extension) in microsoft expression web 3?
This file contain mixed php and html code.

When i try to open this file, i see the "Paste text" dialog.
I need to open it as ordinary php document.

推荐答案

工具 - >应用程序选项 - >配置编辑器

添加扩展名,然后选择"Expresssion Web(以HTML格式打开)"。它会将其作为HTML文件打开,而不是作为PHP文件打开;也就是说,它不会在代码视图中对PHP进行颜色编码,它会提示您使用php扩展名保存它。但至少你可以打开并编辑它。

没有选项以PHP格式打开:EW将php扩展列为Open为HTML,但它认识到php扩展中包含PHP,颜色代码相应的代码视图。
Tools -> Application Options -> Configure Editors

Add the extension, and select "Expresssion Web (Open as HTML)".  It will open it as an HTML file, not as a PHP file; that is, it will not color code the PHP in Code View, and it will prompt you to save it with a php extension.  But at least you can open and edit it.

There's no option to Open as PHP:  EW lists php extensions as Open as HTML, but it recognizes that a php extension has PHP in it, and color codes the Code view accordingly.


这篇关于cakephp模板文件(ctp扩展名)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆