简体   繁体   中英

How to open .tmpl file same as html file in GoLand or PyCharm IDE?

I'm using GoLand IDE. When I open an HTML file I could see different colors in the file content, but when I open a .tmpl file which is used in Go-Template file, I couldn't check it like an HTML file, but when I change its postfix to .html instead of .tmpl it occurs.

So, how can I open .tmpl ( Go-Template ) file same as an HTML file in GoLand IDE?

Also, I tried with PyCharm but the result was same even like that.

You can add *.tmpl to the list of patterns registered for HTML file type in Settings | Editor | File Types

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM