[RESOLVED]NodeJS and template EJS

General questions regarding the usage of CodeLite
sato
CodeLite Enthusiast
Posts: 18
Joined: Wed Jan 06, 2016 6:59 pm
Genuine User: Yes
IDE Question: c++
Contact:

[RESOLVED]NodeJS and template EJS

Post by sato »

Hello,

I code with NodeJS and use EJS for HTML templates.
But ,CodeLite doesn't recognize the file type "* .ejs" (it's like HTML).

How to set up CodeLite to it detects files "* .ejs" as .html files?

Thanks you.
Last edited by sato on Wed Jan 06, 2016 11:50 pm, edited 1 time in total.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: NodeJS and template EJS

Post by eranif »

First, welcome to the forum, please make sure you read the HOW TO POST thread (check my signature)
sato wrote:But ,CodeLite doesn't recognize the file type "* .ejs" (it's like HTML).

If you want ejs to be coloured as HTML, you should add the *.ejs extension to the list of known extensions to the HTML files, from:

"settings->colours and fonts->customize tab->php" and add "*.ejs" to the list of extensions

Eran
Make sure you have read the HOW TO POST thread
sato
CodeLite Enthusiast
Posts: 18
Joined: Wed Jan 06, 2016 6:59 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: NodeJS and template EJS

Post by sato »

Fine. It works. Thank you! :D

(I had searched in the settings but I had not thought about the colors)
Post Reply