EPP (Eclipse PHP) syntax highlighting EditPlus-like Configuration

Source: Internet
Author: User
Tags php editor

EPP (Eclipse PHP) syntax highlighting EditPlus-like Configuration
I got used to EditPlus, And I got used to its highlighted display. I suddenly felt strange when I used Eclipse.
I found an EPP software in PHP100. I got a version 1.2.2 and started to highlight it into EditPlus.
Step 1: Set the font
Window-preference-regular-appearance-color and Font PHP Editor Text Font change using Font Courier New Regular Small Five (9) then apply

Step 2: Set the highlighted color of the current row
Window-preference-PHPeclipse Web Development-PHP-Appearance tab-change Current line highlight to white and then apply

Step 3: highlight the configuration syntax
Window-preference-PHPeclipse Web Development-PHP-Syntax tab is configured according to the following table (note that all BOLD words are checked out in BOLD)
Definitions of HEX-RGB
Multi-liene comment Multi-line comment 008000 0,128, 0
Single-liene comment Single row comment 008000 0,128, 0
PHP tags PHP tag 800000, 0, 0
Keywords excluding 'Return 'except for return, which has the following Keywords: Limit FF 255, blue
Predeined function names built-in function FF0000 255, 0, 0 red
'$ 'Variables $ start with variable 008080 0,128,128
$ _ 'Variables $ _ start with variable 008080 0,128,128
Constants constant 800000, 0, 0
Types type 000000, 0, 0 black (I don't know what this will do)
Double Quoted Strings string FF00FF 255, pink in Double quotes
Single Quoted Strings Single quotes character string FF00FF 255, 0, pink
Others other 800000, 0, 0
Operators,... operation... 800000, 0, 0
Keyword 'Return Keyword '0000ff 255, blue
'{}' Brackets braces 800000, 0, 0
Keyword 008000 0,128, 0 in the PHPDoc keywords PHP File
PHPDoc HTML tags PHP file: HTML Tag 0000FF 255, blue
Link in PHPDoc links PHP file: 0000FF 255, blue
Other 008000 0,128, 0 in the PHPDoc other PHP File
The application is complete.

Next, configure the file template.
PHP file template
Window-preferences-PHPeclipse Web Development-PHP-Code Templates-New PHP files-Edit
Enter the following content and then apply
<? Php
// + ----------------------------------------------------------------------
// | Framework file name-$ {file_name}
// + ----------------------------------------------------------------------
// | Copyright (c) 2010 http://www.fzphp.com All rights reserved.
// + ----------------------------------------------------------------------
// | License http://www.fzphp.com/license/magic.txt
// + ----------------------------------------------------------------------
// | Author Vi0lent <Vi0lentAngel@hotmail.com>
// + ----------------------------------------------------------------------
// | Package $ {package_name }$ {package_name}
// + ----------------------------------------------------------------------
// | Id $ {file_name }$ {date }$ {time}
// + ----------------------------------------------------------------------
// | Description magic framework ini
// + ----------------------------------------------------------------------

?>

HTML file template
Window-preferences-PHPeclipse Web Development-PHP-Code Templates-newly created HTML files-Edit
Enter the following content and then apply

<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Meta name = "keywords" content = ""/>
<Meta name = "description" content = ""/>
<Link href = "css/global.css" rel = "stylesheet" type = "text/css"/>
<Title >$ {package_name }$ {file_name} </title>
<! -- Created on $ {date }$ {time} -->
</Head>

<Body>

</Body>
</Html>

 

From: http://hi.baidu.com/vi0lentangel/blog/item/856faf1bd5056ce7e0fe0ba0.html

Related Article

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.