kingkong
kingkong

Reputation: 1547

Netbeans - Is it possible to change editor default programming language?

I would like to edit file.html with javascript mark ups? Simple open my .html file as .js file.

Upvotes: 0

Views: 842

Answers (2)

ladar
ladar

Reputation: 5876

Go to Tools|Options -> Miscellaneous|Files and for File Extension html change Associated mime type to text/javascript

Upvotes: 1

vogomatix
vogomatix

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

Related Questions