在Eclipse中突出显示.tpl语法 [英] Highlight .tpl syntax in Eclipse

查看:250
本文介绍了在Eclipse中突出显示.tpl语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在搜索,找不到解决方案。我正在设置.tpl文件以使用HTML语法高亮或PHP语法高亮显示。有没有人这样做,或者你知道吗?

I've been googling and can't find a solution for this. I'm trying to setup .tpl files to use either HTML syntax highlighting or PHP syntax highlighting. Has anyone does this, or do you know how?

谢谢

推荐答案

ul>

  • 转到窗口 - >首选项 -

  • 然后通用 - >编辑器 - >文件关联 -

  • 添加PHP编辑器到* .tpl文件类型。您可能必须创建* .tpl类型,如果它不存在。

    • Go to Window -> Preferences-
    • Then General -> Editors -> File Associations-
    • Add the PHP Editor to the *.tpl file type. You may have to create the *.tpl type if it doesn't already exist.
    • 您可能还需要设置内容类型对于您在内容类型中的tpl文件也在常规设置下。向下滚动到PHP源文件,并确保* .tpl也存在。

      You may also have to set the content type for your tpl files in Content Types also under the General settings. Scroll down to PHP Source File and make sure *.tpl exists there as well.

      然后,您需要重新启动eclipse才能使其工作。

      Then you need to restart eclipse to make it work.

      这篇关于在Eclipse中突出显示.tpl语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆