New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Sublime Text 2 treat script tag templates as HTML #17

Closed
Rowno opened this Issue Jul 8, 2013 · 9 comments

Comments

Projects
None yet
7 participants
@Rowno
Copy link
Owner

Rowno commented Jul 8, 2013

This issue is reserved for blog post comments. All comments on this issue and will appear on the blog post's web page.

@Rowno Rowno closed this Aug 15, 2013

@samtgarson

This comment has been minimized.

Copy link

samtgarson commented Mar 8, 2014

In Sublime Text 3, this line is at 308. Worth doing a find just make sure.

@tp

This comment has been minimized.

Copy link

tp commented May 30, 2014

I have filed this as a bug with ST, so that all users may enjoy this fix in a future version: http://sublimetext.userecho.com/topic/453232-/

@bonsak

This comment has been minimized.

Copy link

bonsak commented Nov 5, 2014

Thanks @Rowno. Great tip. This was driving me crazy.

@jrtitus

This comment has been minimized.

Copy link

jrtitus commented Dec 23, 2014

@Rowno - Thanks for posting this. You rock.

@sciascia

This comment has been minimized.

Copy link

sciascia commented Jan 7, 2015

Hi There,

Does anyone know how to fix this issue in ST3 on Mac OS10.9?

There are no HTML.tmLanguage files if I go Preferences -> Browse Packages….

If I Show package contents on the Sublime Text app then go Contents –> MacOS –> Packages I can see a file called HTML.sublime-package but it looks to be some sort of compressed archive that can't be edited.

If I search the system (including system files) for HTML.tmLanguage all that's returned is a cache file named HTML.tmLanguage.cache and a python file named sublimezenplugin.py.

Any pointers in the right direction would be much appreciated.

Cheers

Ben

@Rowno

This comment has been minimized.

Copy link
Owner Author

Rowno commented Jan 8, 2015

@sciascia The default packages are no longer extracted into the user Packages directory in Sublime Text 3.

Here's what you need to do:

  1. Copy Packages/HTML.sublime-package file from the installation directory and decompress it as a .zip file (rename it to HTML.sublime-package.zip).
  2. Copy the HTML.tmLanguage file inside to HTML/HTML.tmLanguage in your user Packages directory (ie: Preferences -> Browse Packages…).
  3. Edit the HTML.tmLanguage file to make the required change at line 308.
  4. Profit.

Maybe I should write a followup blog post. 😉

@sciascia

This comment has been minimized.

Copy link

sciascia commented Jan 8, 2015

@Rowno Cheers, thanks heaps for the reply and your help.

I'd just installed SublimeLinter which seemed to install it's own version of HTML.tmLanguage and fixed the issue.

BTW I was having this issue with straight js script tags (with no type declared) but have now noticed that js syntax highlighting doesn't work. I guess it's an either/or situation - yes?

@Rowno

This comment has been minimized.

Copy link
Owner Author

Rowno commented Jan 9, 2015

@sciascia No, both are working fine for me.

@nivincp

This comment has been minimized.

Copy link

nivincp commented Nov 24, 2016

couldn't get none of these working for me in macos sierra.. ended up setting up the syntax as xml :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment