Igor Konoplyanko
Igor Konoplyanko

Reputation: 9374

IntelliJ Idea highlighting depending on file structure; NOT file extension

I have a little problem: in the project are exists several *.conf files. But they have different file structures: one of them is XML (e.g. Resin conf) and another is java properties file.

Is there any way change highlighting manually, or even better - to change highlighting type automatically ?

Thanks in advance.

Upvotes: 5

Views: 440

Answers (1)

Wim Deblauwe
Wim Deblauwe

Reputation: 26858

I don't think so. IntelliJ seems to use the file extension to determine how to highlight file contents.

Is it possible to rename the files? Having the same extension for different file types seems like a bit of a bad idea.

Upvotes: 2

Related Questions