Reputation: 1547
I would like to edit file.html with javascript mark ups? Simple open my .html file as .js file.
Upvotes: 0
Views: 842
Reputation: 5876
Go to Tools|Options -> Miscellaneous|Files and for File Extension html change Associated mime type to text/javascript
Upvotes: 1
Reputation: 5041
The answer is yes you probably can, but why would you want to edit an HTML file with Javascript markups/syntax highlighting? Whilst there is nothing preventing you doing it, it is not really good practise to have any significant amount of Javascript in an HTML file, so if you have a large amount it should be in a separate .js file
Upvotes: 0