Dec 142017
Add color to text files...
File COLORIT2.ZIP from The Programmer’s Corner in
Category Word Processors
Add color to text files…
File Name File Size Zip Size Zip Type
COLORIT.DOC 4565 1897 deflated
COLORIT.EXE 15139 8221 deflated
SAMPLE 972 211 deflated
SAMPLE.TXT 208 168 deflated
SAMPLEG 1427 261 deflated

Download File COLORIT2.ZIP Here

Contents of the COLORIT.DOC file





Written by Bill Dimes


COLORIT is a file colorizer utility. It will accept any pure text file created
by word processors or text editors and create a colorized version of that file
written to your parameters. It is useful in creating bulletins and screens for
BBS systems as well as text screens for menus used for DOS or any other purpose
where you may need an ANSI color screen. With COLORIT, you can throw a quick
text file together with an editor, then run it through and colorize it, put a
border around it, even center all the lines, automatically! You will get both
a colorized version and a monochrome version will all the borders and

COLORIT is PUBLIC DOMAIN SOFTWARE. You may copy and distribute it as you wish.
All I ask is that you do NOT alter the file in any way and you distribute this
documentation file along with COLORIT.EXE. Use COLORIT at YOUR OWN RISK! I
take no responsibility for anything that may happen during it's use.

COLORIT is written in C. It is fast and small. It's also very easy to operate,
but I'll run down all the details here. Remember, you must have a TRUE TEXT
FILE, with lines ending with a CR LF combination. This is pretty much standard
with most word processors and all text editors. The file you are colorizing
should not contain ansi codes already and no line may be longer than 80
characters. COLORIT will handle leading spaces and the tab character.

To operate COLORIT, simply type COLORIT at the dos command prompt. The
screen will clear and display a heading containing your color choices. If you
see a bunch of numbers and symbols instead of colors, you do not have ANSI.SYS
loaded. COLORIT requires ANSI.SYS to operate. To load ANSI.SYS, simply
place the line DEVICE=ANSI.SYS in your CONFIG.SYS file and place ANSI.SYS in
your root dir and reboot your machine. Most of you already know this, so I
will go on.

The first prompt is for the input file name. You may enter your text filename
here, or a drive:path\filename for the input file. e.g. BLT1 or c:\pcb\gen\blt1

Next is the output file name. You will enter the filename you want the output
of the colorized file to go to. You may also enter a drive:path\filename here.
e.g. BLT1G or c:\pcb\gen\blt1g

Next is the output file name for the MONOCHROME version of the file. You may
enter the same types of things as the other two file names. This file will
contain no color codes, but will have all the frames and centering and will
look identical to the color version except in mono.

Next you will be asked for the Main text Foreground and Background Colors.
Pick them from the chart at the top of the screen. You will notice that the
foreground colors may be any of the 16 colors, but the background may only be
picked from the first 8.

The next prompt asks you if you want the screen to be cleared at the beginning
of the file. Simply type Y or N here.

Next you will be asked if you want to AUTO-CENTER each line. What this does is
first to clear out any leading spaces or tabs on each line, then center the
remaining text. With this option, you can use a text editor to throw a quick
text file together, then run it through COLORIT and center it all up and color

Next you will be asked for a Foreground and Background color to set on exit.
What this does is when the file is finished displaying, this will be the last
color set, so the following dos prompts of board displays will be in the color
you pick here.

Now you will be asked what type of border you want. You can have a single line
double line or no border at all. If you use a border, you lines will be
truncated to 77 characters to leave room for the border characters. With no
border, you can use up to 79 characters.

If you have chosen to use a border you will now be asked for the border
foreground and background colors.

As the file is colorized, you will see the output on the screen.

I hope you enjoy this utility. I can see where it can be put to good use on
many systems to painlessly color those long bulletins and other text files.
Call my BBS for information on doors I have written and other files.

Bill Dimes
The Billboard Door Support BBS
(714) 943-4301 300/1200/2400/9600 HST

 December 14, 2017  Add comments

Leave a Reply