does anyone know how i can map EJS to visual studio to act like a HTML file. I think i managed to do it but its got a lot of bloat in it.. Its basically an HTML file without the
I was also searching for an answer to this question. Here is what I found...
Source - Visual Studio 2008
Obviously Visual Studio does not have support for the .blogtemplate extension. For awhile I hacked my way around it by renaming the files to have a html extension while editing, which sort of works. The main problem is that I keep forgetting to change the extension back before I start testing my changes - so this was causing unnecessary pain... I had a vague memory of configuring something like this before and found these instructions. For the sake of completeness I include them here also:
- Go to the Tools->Options menu.
- Pick Text Editor -> File Extension from the tree in the left part of the Options dialog.
- Type your file extension, .blogtemplate in my case, in the Extension text box.
- Select the appropriate editor from the Editor dropdown.
- Click Add and then Ok to close the dialog and re-open your files.