Reputation: 36166
Is it possible to set syntax for currently opened file to any arbitrary type? The way you can do it in Sublime? Or the syntax highlighting always determined based on the file extension?
Upvotes: 0
Views: 45
Reputation: 93728
Not currently possible. Please see IDEA-103297. The highlighting is based on extensions indeed - or, more exactly, on the patterns specified for each file type in Settings/File types.
Upvotes: 2