SourceInsight read php source code bbs. chinaunix. netviewthread. php? Tid727747 reference SourceInsight (hereinafter referred to as SI) is a very powerful code reading tool, which is only 3 m after installation, but it is too convenient to read other people's code, especially when searching for classes and functions. The SI standard built-in language is mainly used in cc + sourceInsight to read the php source code.
Http://bbs.chinaunix.net/viewthread.php? Tid = 727747
Reference
Source Insight (hereinafter referred to as SI) is a very powerful code reading tool, which is only 3 m after installation. However, it is too convenient to read other people's code, especially when searching for classes, function definition.
The SI standard built-in languages are mainly in c/c ++/Java/C #, but PHP is not used. This time, I had to take over the project code of a relatively large PHP Project. I watched it with UE, and the functions in it jumped off. it was really troublesome. Later, I found that the SI official website had its own PHP language definition file. according to the instructions on the website, I entered the file and configured the following. Class, function, and other associated operations are ready, that is, the syntax is highlighted. Basically, there are only a few processes to control if. else is highlighted and looks tired.
The PHP language definition exported from SI language found that only a few flow control words are configured as keyword, so only these words are highlighted. In this case, the php highlight configuration is exported from the wordfile.txt of ultraedit, and some processing is done, which is divided into four categories: built-in function, keyword, control, and operator. a new text is written and then imported into the language definition.
Then configure the color display for these four categories in the color style, and everything will be OK.
For your convenience, I have uploaded my PHP language definition files and style files for your convenience.
Usage:
= "Decompress, there are two files: PHP Script. CLF, PHP-Styles.CF3
= "Language File: PHP Script. CLF
Follow the prompts on this page: http://www.sourceinsight.com/public/index.html
Custom Language files for adding new language support to Source Insight.
To import a custom language file into Source Insight
1. Select Options> Preferences. Click the ages tab.
2. Click the Import button. Select and load the custom language file (. CLF)
3. You shoshould now see the new language in the list of languages.
4. Click the Document Types button to open the Document Options dialog box.
5. if you don't have a document type already created for the type of language file, you will need to create one now. if you already have a document type created, select it in the list and go to step 7.
6. Click the Add Type button to create a new document type .?? Give it a name that describes the type of file. For example, "Ant File". Click OK and then fill in the file filter text box with a wildcard .?? For example, "*. ant ".
7. In the Parsing section of the Document Options dialog box, select the newly imported language in the language drop-down list. This is what associates your document type with the custom language.
8. Click the Close button to close Document Options. Then click OK to close the Preferences dialog box.
Style file: PHP-Styles.CF3
Menu options-> Style Properties, in the pop-up window, select load, select the style File: PHP-Styles.CF3. After confirmation, you can see four new php-functions, php-keyword, php-control, and php-operator added in the "Style Name" list on the left. After clicking "Done", click OK.
There is no technical content, that is, physical activity. If you have used SI, you will like it more. if you have not used SI, we recommend that you use it.