Sublime Forum

Apply existing code highlight for other langauge

#1

Hello, all.
Im very new to Sublime, and very excited to use a new text editor.

We are developing new language, and I want to write a code of our language with Sublime.
Our language syntax is much like to Java, but the extension is different. (it ends with .k)

How can I apply java highlighting to our program code?
Is this possible by modifying a default preference? or should I write a new package?

regards,

0 Likes

#2

You can open your .k file and on the lower right in your status bar you can change your syntax from plain text to java.

0 Likes

#3

Furthermore, from the same menu you can select to always highlight a .k extension as a Java file.

0 Likes

#4

Thank you very much, it works well. :smiley:

0 Likes

#5

It also works for other ‘.k’ files, thank you!

0 Likes

#6

It also works for other ‘.k’ files, thank you!

0 Likes