Home Backend Development PHP Tutorial sourceInsight 阅览php源码

sourceInsight 阅览php源码

Jun 13, 2016 am 10:40 AM
click document language php the

sourceInsight 阅读php源码
http://bbs.chinaunix.net/viewthread.php?tid=727747

引用

Source Insight(以下简称SI)是非常强劲的代码阅读工具,安装后也就才3M大小,但在阅读别人的代码的时候实在是太方便了,尤其在查找类,函数的相关定义的时候。

SI标准内置的语言主要在c/c++/Java/C#等,但就是没有PHP。这次有个比较大的PHP的项目代码需要接手,用UE看了一段,里面的函数跳来跳去,实在是麻烦。后来g了以下,发现SI官方网站自己带了PHP的语言定义文件,按照网站上的说明,倒入,配置了以下。类,函数等关联操作都已经可以了,就是语法的高亮没有。基本上就只有几个流程控制if,else高亮显示,看起来累就一个字。

从SI的language中导出的PHP语言定义,发现只配置了很少的流程控制字为keyword,所以只有这些是高亮的。这下好办了,从UltraEdit的wordfile.txt中把php的高亮配置导出,做了一些处理,分成内置function,keyword,control,operator四类,写成一个新的文本,然后再倒入进语言定义。

接着在颜色style中配置了对这四类的颜色显示,一切就OK了。

为了方便大家,我把自己做好的PHP语言定义文件和style文件上传,方便大家使用。

使用方法:
==》》解压缩,里面有两个文件:PHP Script.CLF,PHP-Styles.CF3

==》》语言文件:PHP Script.CLF
按照这个页面的提示: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 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文件:PHP-Styles.CF3

菜单“options”-》“Style Properties”,在弹出窗口中,选择“load”,选中style文件:PHP-Styles.CF3。确定后,你可以在左侧的“Style Name”列表中看见增加了四个新的php-function,php-keyword,php-control,php-operator。在点击“Done”确定后,就好了。

以上没什么技术含量,就是体力活。用过SI,你会更喜欢它,没有用过,推荐你用。




Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

CakePHP Project Configuration CakePHP Project Configuration Sep 10, 2024 pm 05:25 PM

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

CakePHP Routing CakePHP Routing Sep 10, 2024 pm 05:25 PM

In this chapter, we are going to learn the following topics related to routing ?

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

To work on file upload we are going to use the form helper. Here, is an example for file upload.

CakePHP Working with Database CakePHP Working with Database Sep 10, 2024 pm 05:25 PM

Working with database in CakePHP is very easy. We will understand the CRUD (Create, Read, Update, Delete) operations in this chapter.

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

CakePHP Creating Validators CakePHP Creating Validators Sep 10, 2024 pm 05:26 PM

Validator can be created by adding the following two lines in the controller.

See all articles