IntelliJ Idea突出显示取决于文件结构;不是文件扩展名 [英] IntelliJ Idea highlighting depending on file structure; NOT file extension

查看:368
本文介绍了IntelliJ Idea突出显示取决于文件结构;不是文件扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一点问题:在项目中存在几个* .conf文件。但它们有不同的文件结构:其中一个是XML(例如Resin conf),另一个是java 属性文件。

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 ?

谢谢提前。

推荐答案

我不这么认为。 IntelliJ似乎使用文件扩展名来确定如何突出显示文件内容。

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.

这篇关于IntelliJ Idea突出显示取决于文件结构;不是文件扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆