31

I've been using Sublime text 2 for the past few days, and I have to say it's been amazing!

I have added many snippets already, but can't figure out how to edit Sublime's default snippets like the script element (script+tab).

In my opinion the script element shouldn't have a type attribute in HTML5, so I'd like to edit that snippet.

Problem is, I can't find it in the /Packages/User folder like the user defined snippets.

Any help would be appreciated!

Web_Designer
  • 72,308
  • 93
  • 206
  • 262

2 Answers2

28

For this its in Packages/HTML/HTML.sublime-completions. To find this kind of stuff all you have to do is do a find anything (Ctrl+Shift+F on linux, don't know for mac..) then bung the sublime folder in the where field and search away!

fraxel
  • 34,470
  • 11
  • 98
  • 102
18

Mac Answer

Go in the menu:
Sublime Text 2 -> Preferences -> Browse Packages...
Than open the HTML folder.
Double click on html_completions.py
Search for script and edit the value.

Hope this help someone.

Simon Arnold
  • 15,849
  • 7
  • 67
  • 85