|
From: | boscagarda-programming |
Subject: | Re: [open-cobol-list] Kate editor Cobol syntax xml file |
Date: | Mon, 9 Apr 2007 11:02:37 -0700 (PDT) |
Vince,
Here's the highlighter file for Kate. I didn't post to the list earlier
because I'd done that last year sometime and didn't want to bother people
again with the hilighter xml file, even if it does compress to 5K (I
haven't touched it since then).
Joseph,
The highlighter file is just that - syntax highlighting, nothing more (no
line-numbering, no command-completion, no online-help, etc). I don't
know of any editors under Unix that will put out line numbering,
especially keeping the line numbers straight when you add new lines in
the middle, though you may be able to write a script or something. Line
numbers are not required in general, and for most Cobol's, those first 6
columns are treated as comments, so you can leave them blank.
Kate is configurable for many things, including tabs. Look under
Configure/Editor/Editing for "insert spaces instead of tabs". Also under
Indentation, which has some other tab-related settings.
Also note that if you're copying from files that came from Windows/Dos
(old program files), they may have return+linefeed instead of the usual
Unix linefeed only for line endings. I don't know offhand if Kate will
convert that automatically for you or not, but if not you may end up with
some lines ending in linefeed and others in return+linefeed. To track
down what is happening, try opening the file using khexedit - a KDE
binary editor that will let you see each char, including all control
chars.
Thanks,
Bob
[Prev in Thread] | Current Thread | [Next in Thread] |