如何在CakePHP的编辑器中突出显示HTML语法? [英] How can I get HTML syntax highlighting in my editor for CakePHP?
本文介绍了如何在CakePHP的编辑器中突出显示HTML语法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用Notepad ++和Aptana来编辑CakePHP代码吗?有什么方法可以使CakePHP的.ctp模板文件获得基本的html语法突出显示?没有任何着色,这对我来说要困难得多.有什么想法吗?
I use Notepad++ and Aptana for editing my CakePHP code? Is there any way to get basic html syntax highlighting for CakePHP's .ctp template files? It's a lot harder for me without any coloring going on. Any ideas?
推荐答案
在Aptana编辑器中配置
引自aptana文档
Quoted from aptana docs
- 从窗口"菜单中选择 首选项...,然后选择 常规>编辑器>文件 协会.
- 添加适当的文件类型.
- 在文件类型"列表旁边,单击 添加按钮.
- 在新文件类型"弹出窗口中, 输入适当的文件扩展名 (例如" .ctp"或" .thtml").
- 单击确定"将新文件类型添加到 列表.
- 将新文件类型与 阿普塔纳.
- 在文件类型"列表上,选择 您刚刚添加的文件类型.
- 在编辑协会旁边 列表中,单击添加"按钮.
- 在编辑器选择"弹出窗口中 窗口中,选择您所需要的编辑器 想要与您的文件关联 类型.
- 单击确定"以添加编辑器.
- 新功能现已与 指定的文件类型.
- 单击确定"以应用您的更改,然后 关闭偏好设置"窗口.
- From the Window menu, select Preferences..., and then choose General > Editors > File Associations.
- Add the appropriate file type.
- Next to the File Types list, click the Add button.
- In the New File Type pop-up window, type the appropriate file extension (e.g. ".ctp" or ".thtml").
- Click OK to add the New File Type to the List.
- Associate the new file type with Aptana.
- On the File Types list, select the file type that you just added.
- Next to the Editor Associations list, click the Add button.
- On the Editor Selection pop-up window, select the editor that you want to associate with your file type.
- Click OK to add the editor.
- The new is now associated with the specified file type.
- Click OK to apply your changes and close the Preferences window.
查看此链接
这篇关于如何在CakePHP的编辑器中突出显示HTML语法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文