質問

I'm trying to write a Sublime Syntax Definition for ExtendScript but don't want to loose the possibility to use the SublimeLinter plugin. So how can I tell SublimeLinter that he should use jshint not only on scope source.js but also on my scope source.jsx?

役に立ちましたか?

解決

Select Preferences->Package Settings->SublimeLinter->Settings - User and to add to it the following:

"sublimelinter_syntax_map":
{
    "Python Django": "python",
    "Ruby on Rails": "ruby",
    "C++": "c"
    "ExtendScript": "JavaScript"
}

and you should be all set. If it doesn't work, try changing JavaScript to all lowercase - the docs are a little unclear as to which is correct.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top