Home Download Buy Blog Forum Support

BAT/CMD syntax highlighting, seriously?

BAT/CMD syntax highlighting, seriously?

Postby poppyq on Tue Oct 20, 2009 2:39 am

People still use batch/cmd files and most other editors out there support it. I don't see it included by default, and couldn't find it on some of the links to conversions. Has anyone done this or know where to get it? I use batch quite a bit at work for simple tasks and this is actually one thing that's preventing me from moving to Sublime.
poppyq
 
Posts: 2
Joined: Tue Oct 20, 2009 2:37 am

Re: BAT/CMD syntax highlighting, seriously?

Postby jps on Tue Oct 20, 2009 12:06 pm

I'll include a .tmLanguage file for .bat files in the next beta
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: BAT/CMD syntax highlighting, seriously?

Postby poppyq on Mon Nov 02, 2009 11:09 pm

Thanks! Can you make sure it supports BAT and CMD? BAT is the DOS-variant of CMD (Windows batch files). Sorry for the "seriously?" comment, I was just kind of surprised to see it missing support for these.
poppyq
 
Posts: 2
Joined: Tue Oct 20, 2009 2:37 am

Re: BAT/CMD syntax highlighting, seriously?

Postby myel on Mon Nov 02, 2009 11:21 pm

you can just change the last lines in ...Application Data\Sublime Text\Packages\Batch File\Batch File.tmLanguage (latest beta has this file)

Code: Select all
        <key>fileTypes</key>
        <array>
            <string>bat</string>
        </array>


to

Code: Select all
        <key>fileTypes</key>
        <array>
            <string>bat</string>
            <string>cmd</string>
        </array>
myel
 
Posts: 88
Joined: Sat Mar 22, 2008 11:26 pm

Re: BAT/CMD syntax highlighting, seriously?

Postby mrdctaylor on Wed Nov 04, 2009 2:22 pm

...and not to harp on it, but have you figured out why JSP syntax highlighting works fine in TextMate but not in Sublime? I tested that last week and it was the case. :-(
mrdctaylor
 
Posts: 14
Joined: Fri Oct 16, 2009 1:37 pm

Re: BAT/CMD syntax highlighting, seriously?

Postby jps on Fri Nov 06, 2009 6:01 am

Sublime Text is using an older version of Java.tmLanguage, that doesn't work nicely when included from the JSP tmLanguage file... I'll update it for the next beta.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm


Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 12 guests