Simple.
1) Open Preferences.
2) Select File Types node in the left panel. This will expose all the 
recognized file types in the right panel.
3) In the list of recognized file types select HTML. This will expose the 
registered patterns for file types associated with HTML file types in the 
bottom right panel.
4) Click the + icon at the bottom of the bottom right panel. This will 
expose the Add Wildcard window.
5) In the Add Wildcard window there is a text box labeled "Enter new 
wildcard. Type *.ejs and clickOK. This will add *.ejs to the list of file 
types to be associated with HTML file types.
6) Click the Apply button and then the OK button, both located at the 
bottom right of the Preferences window.

And that's it. Now Webstorm will treat your *.ejs files as HTML files and 
provide proper color coding as well as code completion.
 

On Friday, January 4, 2013 9:17:18 AM UTC-5, Rodrigo Fonseca wrote:
>
> How can i do that? Create a html file and put ".ejs" in the end of the 
> file?
>
> Em sexta-feira, 4 de janeiro de 2013 02h22min40s UTC-3, Jeff Schwartz 
> escreveu:
>>
>> Configure ejs as html in webstorm. It works for me.
>
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to