How to highlight tpl file?
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.
- Open Sublime.
- Go to Menu in Preference Option.
- Preference in Click Package Control Option.
- Open One Popup Open.In You Select Install Package Option.
- Another One Popup Open in You Enter smarty keyword and You Click Smarty Syntax Package.
- 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.
Comments
-
Run almost 2 years
I'm using NOTPAD++ and I wonder how I can highlight codes in tpl files.
I googled online and there are answers but none of them works. For intance, http://sourceforge.net/p/notepad-plus/discussion/331753/thread/3067a53d/
Any ideas?
Or any other better programmes than NOTEPAD++ for highlighting codes in tpl files?
-
Sophia over 10 yearsPlease, refer here: stackoverflow.com/questions/5677962/… ;)
-
NoWomenNoCry over 6 yearsselecting php would be more adequate, because includes html and php. Selecting html includes only html.