Page 1 of 1

[RESOLVED]NodeJS and template EJS

Posted: Wed Jan 06, 2016 7:06 pm
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.

Re: NodeJS and template EJS

Posted: Wed Jan 06, 2016 7:22 pm
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

Re: NodeJS and template EJS

Posted: Wed Jan 06, 2016 11:50 pm
by sato
Fine. It works. Thank you! :D

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