Sublime Forum

Support for Codekit .kit files: syntax view not saved

#1

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

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. :smile:

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

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

thanks

Tobi

0 Likes

#2

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 <string>kit</string> in the filetypes array:

	<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.

0 Likes