Hello!
I would like to share the way i make TernJS work correctly in HTML file.
The issue: after make TernJS working in HTML ("syntax_scopes": "source.js, text.html") we have very strange thing with tags autocompletion (script autocompletion inside works fine) - there are no tag names in autocomplete suggestion:
Solution: i've disabled default trigger on "<" character (removed {"selector": "text.html", "characters": "<"} from preferences)
now i have:
{
"auto_complete_triggers": [ {"selector": "source.js", "characters": "."} ]
}
Hello! I would like to share the way i make TernJS work correctly in HTML file.
The issue: after make TernJS working in HTML ("syntax_scopes": "source.js, text.html") we have very strange thing with tags autocompletion (script autocompletion inside works fine) - there are no tag names in autocomplete suggestion:
Solution: i've disabled default trigger on "<" character (removed {"selector": "text.html", "characters": "<"} from preferences)
now i have: { "auto_complete_triggers": [ {"selector": "source.js", "characters": "."} ] }
and everything works excellent: