Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to highlight tpl file?

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?

like image 423
Run Avatar asked Aug 12 '13 10:08

Run


People also ask

How do I read a TPL file?

You can open TPL files with Microsoft Visual Studio Code in Windows, macOS, or Linux. Then, you can install the free "Smarty" extension to add support for syntax highlighting and snippets in the Smarty 3 templating language.

What is TPL format file?

TPL is a template file which is a common text file that contains user-defined variables that are entitled to be overridden by user-defined output content when a PHP web application parses the template file. These are used by web applications with server script PHP(but not restricted to) as a template file.


1 Answers

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.
like image 51
Žiga Avatar answered Oct 22 '22 00:10

Žiga