jens1o / vscode-smarty

Smarty syntax highlight extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=imperez.smarty
GNU General Public License v3.0
14 stars 9 forks source link

Is it possible to use *.htm file extension instead of *.tpl? #20

Closed Dawid-Ohia closed 5 years ago

Dawid-Ohia commented 5 years ago

I use .htm extension for Smarty templates files. Is it possible to configure this extension to identify .htm files as Smarty templates?

arvislacis commented 5 years ago

I personally add the following lines in my VSCode Workspace settings for every project which uses Smarty template engine and uses .htm,.html files for templates:

{
    "files.associations": {
        "*.html": "smarty",
        "*.htm": "smarty"
    }
}
Dawid-Ohia commented 5 years ago

@arvislacis Thanks! it works.