zoukankan      html  css  js  c++  java
  • 给zend studio添加.ctp, .tpl等可以识别的php文件类型 简单

    Overview

    Zend Studio for Eclipse has a number of pre-defined file extensions associated with a specific content type and editor. For example the .html extension has the Text/HTML content type and is by default opened with the Eclipse HTML Editor. However, not all possible file extensions have pre-defined associations in Zend Studio for Eclipse. If you are trying to open a file with an unknown extension, the Eclipse platform doesn't know how to handle such a file. At this point the behavior differs, from error messages to total lockup of the program. The behavior basically depends on the environment (operating system and its configuration).

    Instructions

    This article explains how to associate a new file extension with PHP Editor. The example is based on associating .tpl extension with PHP content type and PHP Editor. To enable Zend Studio to open *.tpl files as regular PHP code, proceed as follows:

    1. In Zend Studio go to Window | Preferences (on MacOS - Zend Studio for Eclipse | Preferences)
    2. In the Preferences dialog open the hierarchy General | Content types
    3. On the Content Types page select Text | PHP Content type
    4. Click Add

    1. In the Add Content Type Association dialog enter *.tpl and click OK

    1. In the Preferences dialog open the hierarchy General | Editor | File Associations
    2. On the File Associations page click the Add button next to the File types list

    1. In the Add File Type dialog enter *.tpl and click OK

    1. To verify that the procedure was succesful, verify that the *.tpl files are associated with the usual set of PHP editors on the File Associationspage.

    Result

    From now on the *.tpl files can be opened in Zend Studio for Eclipse. Similar procedure can be applied to other file types, for example *.template and *.module.

  • 相关阅读:
    python基础008----Python中类/函数/模块的简单介绍
    linux基础004---用户管理、用户登录注销、系统关机重启
    python基础006----流程控制&推导式&深浅拷贝
    python基础005----字典&集合
    python基础004----列表&元组
    难缠的布隆过滤器,这次终于通透了
    C# 位图BitArray 小试牛刀
    以步步为营的风格解读 Redis分布式锁
    你是不是对MD5算法有误解?
    最适合新手的Redis Cluster搭建过程
  • 原文地址:https://www.cnblogs.com/chyong168/p/2256078.html
Copyright © 2011-2022 走看看