Home Download Buy Blog Forum Support

apply existing code highlight for other langauge

apply existing code highlight for other langauge

Postby kindofbrown on Tue Apr 10, 2012 10:40 am

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,
kindofbrown
 
Posts: 3
Joined: Tue Apr 10, 2012 10:29 am

Re: apply existing code highlight for other langauge

Postby atomi on Tue Apr 10, 2012 7:49 pm

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.
atomi
 
Posts: 342
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US

Re: apply existing code highlight for other langauge

Postby nick. on Tue Apr 10, 2012 9:47 pm

Furthermore, from the same menu you can select to always highlight a .k extension as a Java file.
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: apply existing code highlight for other langauge

Postby kindofbrown on Wed Apr 11, 2012 3:20 am

atomi wrote: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.


Thank you very much, it works well. :D
kindofbrown
 
Posts: 3
Joined: Tue Apr 10, 2012 10:29 am

Re: apply existing code highlight for other langauge

Postby kindofbrown on Wed Apr 11, 2012 3:21 am

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


It also works for other '.k' files, thank you!
kindofbrown
 
Posts: 3
Joined: Tue Apr 10, 2012 10:29 am

Re: apply existing code highlight for other langauge

Postby lmn40227 on Wed Apr 11, 2012 8:14 pm

It also works for other '.k' files, thank you!
oh . yeah12345
lmn40227
 
Posts: 1
Joined: Wed Apr 11, 2012 7:52 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 21 guests