gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] Kate editor Cobol syntax xml file


From: Bob
Subject: Re: [open-cobol-list] Kate editor Cobol syntax xml file
Date: Mon, 9 Apr 2007 13:44:41 -0400
User-agent: KMail/1.9.4

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

==============
On Monday 09 April 2007 1:16 pm, address@hidden wrote:
Hi Mr. Vince,

I am forwarding your msg to the open-cobol list as you sent it just 
directly to me. Your best bet, when you get something from the list, is 
to select reply all. Then just delete the individual addresses of the 
folks since if they are on the open-cobol-list they will get the email 
anyhow and that will insure they dont get two copies of the email.

Btw yall..the kate xml file that Mr. Bob sent works great at highlighting. 
However it doesnt provide automatic line numbers. In addition if I copy 
code from someplace else, kate seems to fill in tab marks or something. I 
can't really tell. But this makes it difficult for my code to compile. I 
am curious if there is a program (perhaps a terminal program) that can 
automatically add line numbers to a file..including replacing them? Or if 
there is an editor that will do so. I dont really need anything fancy 
right now. 

As a side note i do have KOBOL and its editor and debugger. But I want to 
work with something a bit more open source.

Thank you kindly and best regards,
Joseph James Frantz

vince coen <address@hidden> wrote: Hi Bob;
On Monday 09 April 2007 14:44, address@hidden wrote:

> Bob Willan  wrote: I created a Cobol syntax
> highlighter xml file for Kate a while back, but so far as I can tell the
> maintainers still haven't bothered to include it with new versions of 
Kate
> (the KDE Editor).  I've attached it as a gzip file to save space.
>
> To install it, just copy it to /usr/share/apps/katepart/syntax (on my
> Mandriva machine, at least, it might be somewhere else on Ubuntu).  It
> will show up as a choice under 'Sources' in the tools/highlighting
> submenu.
> I also have an XEmacs Cobol highlighting file that works decently if you 
> want (I use Emacs far more than Kate, myself, but its got a longer 
> learning curve than a menu-driven GUI editor like Kate).


I did not see your post to this list with the kate hi-lighter file. Can 
you 
please repost.

I must also agree with Joseph that you can't seem to register onto the 
Open-Cobol site. It just ignores you same with request to send a copy of 
password despite saying that it has do so.

Vince.


Attachment: cobol.xml.gz
Description: GNU Zip compressed data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]