Version: (using KDE 4.2.3)
Compiler: GCC 4
Installed from: Gentoo Packages
Now that Kate has been ported to Windows especially I think it is important to support syntaxes like Windows/DOS Batch, Visual Basic (VB.NET also), VBScript, and others.
I use Wine and DosBox and encounter batch files that I would like to see some syntax highlighting when using Kate, my preferred editor.
Created attachment 35830 [details]
Well, here's a start, no promises how complete or even non-broken this is :-).
@Matthew Woehlke: The dosbat.xml seems to be a good start (thanks a lot, by the way). I have just installed it along with Kate/KDE 3.5.10 (the SMB Kio/slave allowed editing these filetypes before the start of KDE 4).
However, I got warnings when the dosbat.xml was parsed by Kate: it appears this file mentions two undefined contexts (CmdIf and CmdFor) at lines 110 and 111. Commenting them out works, but I guess you intended to define these contexts?
Created attachment 42285 [details]
.bat highlighter, updated
> However, I got warnings when the dosbat.xml was parsed by Kate: it appears this
> file mentions two undefined contexts (CmdIf and CmdFor) at lines 110 and 111.
> Commenting them out works, but I guess you intended to define these contexts?
Yes. In fact, I started tinkering with it again recently. Updated version attached. There is still a warning about CmdIf since, as you've noticed, no parsing is done for 'if' yet, but parsing for 'for' is starting to shape up.
That new version is already much more usable. Thanks a lot :)
Git commit 254c577f3f8e37d620741d6e8e3a0abbac7bfc6f by Christoph Cullmann.
Committed on 12/08/2011 at 10:45.
Pushed by cullmann into branch 'master'.
add MSDOS BAT hl
even if not fully working, better than nothing
A +311 -0 part/syntax/data/dosbat.xml