home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 4
/
CDPD_IV.bin
/
utilities
/
editors
/
ced-programs
/
readme
< prev
next >
Wrap
Text File
|
1994-06-23
|
3KB
|
98 lines
Six CED-ARexx-Programs
Stefan Winterstein
(winter@cs.uni-sb.de)
Here are a few ARexx programs for CygnusEd Pro. I wrote them for my
personal needs some time ago, but as they are really handy, I thought I
might make them available to other users.
Installation
------------
To use the programs, copy them to your 'Rexx:ced' directory. You
can try them from CED using "Send DOS/Arexx Command..." from the menu;
enter "ced/<programname>" in the requester (you don't need the ".ced"
suffix).
To install them permanently, you can either assign them to function
keys via "Install DOS/Arexx command..." or execute them as a macro. For
example, I have bound "LeftShift" to the "<"-key and "RightShift" to ">".
Descriptions
------------
Most of the programs (except for "FormatNewsHeader") operate on the
currently marked block. For example, to mark a paragraph with "«" on
the right side, go to the first line, turn block marking on, move the
cursor to the last line you want to mark, then call "MarkRight".
Left-C-Comment.ced
This program turns the currently marked block into a C-comment. If no
block is marked, it comments the current line. Example:
/*
* Put a nice C-style comment on the left hand side
* of the current block or current line.
*
*/
LeftShift.ced / RightShift.ced
These programs move the currently marked block to the left and right
respectivly. The indent depth is the current tabsize setting. Useful
for in- and outdenting blocks in a source file.
MarkRight.ced
This program marks the currently selected block with "«" signs on the
right margin. I use it to mark important paragraphs in the news
articles I keep in my archive.
Quote.ced
This program turns the currently selected block into a quote by
inserting "> " at the beginning of every line.
FormatNewsHeader.ced
This program strips unnecessary lines from the header of news articles
and reformats them. It considers the next line starting with "Article:"
as the start of a header. The result looks like this:
Subject: Re: Byte's Amiga 4000 review...
From: andy@cbmvax.commodore.com (Andy Finkel)
Organization: Flying Cat, Inc.
Date: 11 Jan 93 15:29:12 GMT
Newsgroups: comp.sys.amiga.advocacy
Article: 5376 of comp.sys.amiga.advocacy
Message-ID: <38461@cbmvax.commodore.com>
Disclaimer
----------
All programs are in the Public Domain. Do with them what you want, but
don't blame me.
Enjoy.
--- ///
Stefan Winterstein, Schwarzbachstr. 7, W-6650 Homburg 6, Germany ///
__ ///
winter@cs.uni-sb.de \\\ ///
\\X//