[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] Kate Cobol syntax highlighting - here's a cobol.xm
Re: [open-cobol-list] Kate Cobol syntax highlighting - here's a cobol.xml file
Mon Feb 20 21:37:02 2006
There is a Cobol highlighting file for JEdit, a nice Java editor. I usually
use XEmacs, but sometimes it is nice to just jump in and use Kate. So, since
I had today off, I started with the JEdit Cobol file and created one that
works in Kate. I hope this helps.
Attached is my new cobol.xml highlighting file for Kate. I haven't tested it
all that much but it seems to work for some large MicroFocus programs I'm
working with. It handles col 1-6 as comments (since MF allows anything
there, not just line numbers), col 73-80 as comments, embedded SQL sections
are highlighted, paragraphs are highlighted, and the usual keywords and
functions. The only thing I know of that it maybe should do that it doesn't
is to handle line continuations (using the dash '-' in col 7), but none of
the code I've seen in years uses that, anyway. Any string literals that
extend over one line using the continuation are going to confuse the
highlighting and later sections of code may be all messed up.
When I get a chance, I'll test a bit more, and then see about getting it added
to the official list of Kate highlighters. Or, if anyone else cares to do
this for me, by all means go for it.
On Sunday 19 February 2006 08:49 pm, Robert Keane wrote:
Does anyone have or know where to get a cobol.xml file that will work
with KDE's Kate editor.
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
open-cobol-list mailing list
Description: Text Data