I wrote the following quick'n'dirty script that converts
a plain text file (with a little custom markup)
into a very basic html file. It works great, and now
I'd like to make it into a standalone app to use
on my other machines that do not have activestate perl
installed (or pass to friends who don't have perl).
Is there a way to do that outside of purchasing the pdk?
Again, this is on win32...
Here's the script - feel free to offer comments on it,
as well. Always good to hear constructive criticism.
It's called at a command line by using:
convert.pl original.txt > finished.html
The conventions I'm using in the text document are:
[title]my_title[/title]
[link]my_docname[name]my_linkname[/name]
--------------
print "<body link=\"#ffff00\" mlink=\"#ffffcc\">\n";
while (<>)
{
s/\n/<br>\n/;
s/\[title\]/<c "#00CC00"> /;
s/\[\/title\]/<\/c>/;
s/\[link\]/<a href=\"file\:\/\/\/help\//;
s/\[name\]/.html\">/;
s/\[\/link\]/<\/a>/;
print;
}
print "\n<\/body>";
--------------
-Tony
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]