EPP(Eclipse PHP)文法高亮仿EditPlus配置

來源:互聯網
上載者:User

EPP(Eclipse PHP)文法高亮仿EditPlus配置
用習慣了EditPlus,也看習慣了它的高亮顯示 ,用Eclipse的時候突然感覺怪怪的
在PHP100找到了個EPP軟體 有搞頭 呵呵 下了個1.2.2的版本 開始搗鼓成EditPlus 的高亮吧
第一步:設定字型
視窗 - 喜好設定 - 常規 - 外觀 - 顏色和字型 PHP Editor Text Font 更改 使用字型 Courier New 常規 小五(9) 然後應用

第二步:設定當前行高亮色
視窗 - 喜好設定 - PHPeclipse Web Development - PHP - Appearance選項卡 - Current line highlight 改成白色 然後應用

第三步:配置文法高亮
視窗 - 喜好設定 - PHPeclipse Web Development - PHP - Syntax選項卡 按照以下對照下表配置(注意所有的BOLD也就是粗體要勾掉)
英文 - 對照原文大概意思 - HEX - RGB
Multi-liene comment  多行注釋  008000  0,128,0
Single-liene comment  單行注釋  008000  0,128,0
PHP tags   PHP標籤   800000  128,0,0
Keywords excluding 'return' 除return外關鍵字 0000FF  0,0,255 藍色
Predeined function names 內建函數  FF0000  255,0,0 紅色
'$'Variables   $開始的變數  008080  0,128,128
'$_'Variables   $_開始的變數  008080  0,128,128
Constants   常量   800000  128,0,0
Types    類型   000000  0,0,0 黑色 (不知道這個什麼作用)
Double Quoted Strings  雙引號內字串  FF00FF  255,0,255 粉紅色
Single Quoted Strings  單引號內字串  FF00FF  255,0,255 粉紅色
Others    其他   800000  128,0,0
Operators,...   操作...   800000  128,0,0
Keyword 'return'  return 關鍵字  0000FF  0,0,255 藍色
'{}'brackets   大括弧   800000  128,0,0
PHPDoc keywords   PHP檔案內關鍵字  008000  0,128,0
PHPDoc HTML tags  PHP檔案內HTML標籤 0000FF  0,0,255 藍色
PHPDoc links   PHP檔案內連結  0000FF  0,0,255 藍色
PHPDoc other   PHP檔案內其他  008000  0,128,0
最後應用 就完成了

接下來設定檔範本吧
PHP檔案模板
視窗 - 喜好設定 - PHPeclipse Web Development - PHP - Code Templates - New PHP files -Edit
輸入以下內容 然後應用
<?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檔案模板
視窗 - 喜好設定 - PHPeclipse Web Development - PHP - Code Templates - newly created HTML files -Edit
輸入以下內容 然後應用

<!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>

 

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.