I have added:

    <string>conf</string>

to fileTypes section (https://github.com/clintberry/sublime-text-2-ini/blob/master/INI.tmLanguage) for INI plugin but .conf files (which are essentially .ini files) are still not syntax highlighted in ST2.

I'd add ticket in INI plugin github Issues system but it seems to be abandonware...

有帮助吗?

解决方案

Open a .conf file in Sublime, then select View -> Syntax -> INI for syntax highlighting. Then, select View -> Syntax -> Open all with current extension as... -> INI and you should be all set. This creates a file Packages/User/INI.sublime-settings with the correct settings in it:

{
    "extensions":
    [
        "conf"
    ]
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top