How to highlight tpl file?

14,061

Solution 1

I found these instructions and worked for me.

http://was955.wordpress.com/2013/03/06/how-to-add-a-tpl-files-to-notepad-as-a-php-file/

  • Step 1) Run Notepad++ using from “Run as Administrator”.
  • Step 2) Go to “Settings”->”Style Configurator”.
  • Step 3) Add in the .tpl extension name into the “User ext” column by choosing PHP or html as a Language on from the options on left hand selection box.
  • Step 4) Click Save & Close on next.

Solution 2

I'm Use sublime text 3 in this is work.

You open tpl file in sublime with highlight code so,following below step.

  1. Open Sublime.
  2. Go to Menu in Preference Option.
  3. Preference in Click Package Control Option.
  4. Open One Popup Open.In You Select Install Package Option.
  5. Another One Popup Open in You Enter smarty keyword and You Click Smarty Syntax Package.
  6. This Package is install after Your tpl file is highlighting with smarty

Solution 3

How about userDefineLang_smarty.xml:

http://notepad-plus.sourceforge.net/commun/userDefinedLang/userDefineLang_smarty.xml

Solution 4

My search for a good and free Smarty Editor, resulted in Netbeans with a Smarty Plugin (named PHP Smarty Framework). I am an eclipse user, whenever I need to work on views (templates) I switch to Netbeans. But, I accept this as a Temporary solution and looking for a working smarty plugin for Eclipse.

Solution 5

SynWrite editor, also free, allows you to create TPL lexer of any kind. See lexer-related tutorials in Readme folder.

Share:
14,061
Run
Author by

Run

A cross-disciplinary full-stack web developer/designer.

Updated on June 19, 2022

Comments