Sublime Forum

Auto complete inside of script tags for HTML syntax

#1

I’m beginning to work with Ember.js which uses handlebars scripts to do it’s front end work. I can’t seem to get HTML to auto complete when inside of a script tag. I thought I saw something on the sublime text 3 new features list that this was supported. How can I get this to work?

0 Likes

#2

I’m not aware of this ability in ST out of the box, but it’s possible via a custom tmLanguage file. Below is a link for angularjs HTML lang that allows you to write HTML, with completions, inside scripts tags with type="text/ng-template".

You should be able to tweak that file and use it as an alternate HTML syntax when working with emberjs.

github.com/angular-ui/AngularJS … tmLanguage

0 Likes

#3

Alright so how would I save that file to use in sublime?

Also I was referring to this page here…

sublimetext.com/3

5th item down in the build 3047 list

“HTML tag auto completion is better behaved in script tags”

Is that not what I’m thinking then?

0 Likes

#4

Hmmm… I missed seeing that bit of the update, I’m not sure of it’s exact meaning.

As for saving, save the file in your Packages/User folder.

0 Likes