Home Download Buy Blog Forum Support

Support for Codekit .kit files: syntax view not saved

Support for Codekit .kit files: syntax view not saved

Postby pixeltobi on Sat Apr 27, 2013 6:48 pm

... i am trying out to use .kit (Codekit's html template language extension) files with sublime text.

http://incident57.com/codekit/kit.php

But there are problems with the syntax view in Sublime. I like to view .kit-files with HTML-Syntax, so i just changed the View/Syntax to HTML and saved the file. :)

But whenever i open it again the View changes back to PlainText Syntax. :(

Am I missing something or why is it not working? :?

thanks

Tobi
pixeltobi
 
Posts: 1
Joined: Sat Apr 27, 2013 11:30 am

Re: Support for Codekit .kit files: syntax view not saved

Postby matt_0 on Sat May 04, 2013 4:47 pm

I would quickly edit the HTML.tmLanguage file to add the .kit extension.
Just open the Packages folder form Sublime Text menu > Preferences > Browse Packages... and then open the HTML folder.
In the HTML.tmLanguage file add
Code: Select all
<string>kit</string>
in the filetypes array:
Code: Select all
   <key>fileTypes</key>
   <array>
      <string>html</string>
      <string>htm</string>
      <string>shtml</string>
      <string>xhtml</string>
      <string>phtml</string>
      <string>inc</string>
      <string>tmpl</string>
      <string>tpl</string>
      <string>ctp</string>
      <string>kit</string> <!-- add this line -->
   </array>


Finally quit Sublime Text and reopen. It should use HTML syntax for every .kit files.
matt_0
 
Posts: 1
Joined: Sat May 04, 2013 4:37 pm


Return to Technical Support

Who is online

Users browsing this forum: bler, Exabot [Bot], Yahoo [Bot] and 25 guests