Sourceinsight reading PHP Source code

Source: Internet
Author: User
Tags php source code
Sourceinsight Read PHP source code
http://bbs.chinaunix.net/viewthread.php?tid=727747
Reference


SOURCE Insight (hereinafter referred to as SI) is a very strong code reading tool, after installation is only 3M size, but it is very convenient to read other people's code, especially in the search for classes, functions related to the definition of time.

Si standard built-in language mainly in c/c++/java/c#, but there is no PHP. This time there is a larger PHP project code needs to take over, with the UE to see a paragraph, inside the function jump to jump, it is really trouble. Later G took the following, found that SI official website own php language definition file, according to the instructions on the website, pour, configure the following. Classes, functions and other associated operations are already available, that is, the syntax is not highlighted. Basically only a few process control if,else highlighting, looks tired on a word.

The PHP language definition derived from SI's language found that only a few of the process Control words were configured for keyword, so only these were highlighted. This is good to do, from the ultraedit of the Wordfile.txt in the PHP highlight configuration to export, do some processing, into the built-in Function,keyword,control,operator four class, write a new text, and then pour into the language definition.

Then in the color style configured in the four class color display, everything is OK.

In order to facilitate everyone, I put my own good PHP language definition file and style file upload, convenient for everyone to use.

How to use:
= = "Uncompressed, 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 Languages tab.

2. Click the Import button. Select and load the custom language file (. CLF)

3. You should 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'll need to create one now. If you already has 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 sections of the Document Options dialog box, select the newly imported language in the language Drop-down List. This is a 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. Once you're sure, you can see the addition of four new php-function,php-keyword,php-control,php-operator in the "Style Name" list on the left. After clicking "Done" OK, it's OK.

There is no technical content above, that is, physical activity. Using Si, you will like it more, no use, recommend you to use.




  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.