如何在CakePHP的编辑器中突出显示HTML语法? [英] How can I get HTML syntax highlighting in my editor for CakePHP?

查看:115
本文介绍了如何在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

  1. 从窗口"菜单中选择 首选项...,然后选择 常规>编辑器>文件 协会.
  2. 添加适当的文件类型.
  3. 在文件类型"列表旁边,单击 添加按钮.
  4. 在新文件类型"弹出窗口中, 输入适当的文件扩展名 (例如" .ctp"或" .thtml").
  5. 单击确定"将新文件类型添加到 列表.
  6. 将新文件类型与 阿普塔纳.
  7. 在文件类型"列表上,选择 您刚刚添加的文件类型.
  8. 在编辑协会旁边 列表中,单击添加"按钮.
  9. 在编辑器选择"弹出窗口中 窗口中,选择您所需要的编辑器 想要与您的文件关联 类型.
  10. 单击确定"以添加编辑器.
  11. 新功能现已与 指定的文件类型.
  12. 单击确定"以应用您的更改,然后 关闭偏好设置"窗口.
  1. From the Window menu, select Preferences..., and then choose General > Editors > File Associations.
  2. Add the appropriate file type.
  3. Next to the File Types list, click the Add button.
  4. In the New File Type pop-up window, type the appropriate file extension (e.g. ".ctp" or ".thtml").
  5. Click OK to add the New File Type to the List.
  6. Associate the new file type with Aptana.
  7. On the File Types list, select the file type that you just added.
  8. Next to the Editor Associations list, click the Add button.
  9. On the Editor Selection pop-up window, select the editor that you want to associate with your file type.
  10. Click OK to add the editor.
  11. The new is now associated with the specified file type.
  12. Click OK to apply your changes and close the Preferences window.

查看此链接

这篇关于如何在CakePHP的编辑器中突出显示HTML语法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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