Zend studio file comment template setting method_PHP tutorial

WBOY
Release: 2016-07-21 16:13:09
Original
1394 people have browsed it

Steps: Window -> PHP -> Editor -> Templates, here you can set up (add, delete, modify, import, etc.) to manage your templates.
Create instances of templates such as file comments, function comments, code blocks, etc.

Create a new template and enter Name, Description and Pattern respectively

a) File comments

Name: 3cfile
Description: tkyouxi.com file comment template

Pattern:
/**
* tkyouxi.com xx file
* ===================================== =========
* ​​Copyright 2010-2011 http://www.tkyouxi.com.com
* ------------------ --------------------------
* This is not a free software, and any unauthorized use or dissemination is prohibited.
* ==============================================
* @date: ${date}
* @author: ${user}
* @version:
*/

b) Method annotation

Name: 3cmethod
Description: tkyouxi.com method comment template
Pattern:
/**
* Description of function purpose
* @date: ${date}
* @author: ${user}
* @return:
*/

c)if format

Name: 3cif
Description: tkyouxi.com if format template
Pattern:
if (${condition}) {
${cursor};
}

Enter the PHP file, enter 3cfile, 3cmethod or 3cif, etc., and press Enter to call up the template content to facilitate coding standards during development.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/313523.htmlTechArticleSteps: Window - PHP - Editor - Templates, here you can set up (add, delete, modify, import, etc.) management your template. Create new instances of file comments, function comments, code blocks and other templates...
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template