[转]Source Insight 支持 PHP代码的详细设置

原文地址:http://blog.****.net/dull_boy2/article/details/12981787


过程如下:
  2、打开Option菜单的Preferences对话框,选择Languages标签,点击Import按钮,倒入PHPScript.CLF文件
[转]Source Insight 支持 PHP代码的详细设置
 3、点击"Doc Type..."按钮,选择Add Type按钮,在弹出对话框中输入"PHPFile"(该处只是一个标识名称,可随意),在File filter中输入*.php
        在Document Type中选择"PHP File",然后勾选"Include when adding to projects"(如不勾选它的话,在项目添加文件时,它无法识别php文件,即无法将php文件添加到项目中),在Parsing部分,Language列表框中选择PHP
[转]Source Insight 支持 PHP代码的详细设置
  4、options”-》“Style Properties”,在弹出窗口中,选择“load”,选中style文件:PHP-Styles.CF3。确定后,你可以在左侧的“Style Name”列表中看见增加了四个新的php-function,php-keyword,php-control,php-operator。在点击 “Done”确定后,就好了。
[转]Source Insight 支持 PHP代码的详细设置
关闭窗口,确定应用即可完成支持php文件
最后还需要手工修改:
选项->参数设置->语言->PHP Script->属性->注释和范围
相应地修改“字符串”、“多行注释”、“单行注释”
[转]Source Insight 支持 PHP代码的详细设置
添加时,我的3.5看不到Add, 直接用ALT+A.

Comments and Ranges

The Comments and Ranges page is where you specify how comments and other multi-line range elements are parsed. A quoted string is an example of a non-comment multi-line range element.

Add…

Click this button to add a new range element. The Range Definition dialog box will appear. See also “Range Definition”.