skip to main content

kiesler.at

a2html
updated by rck, 2004-10-10

a2html is a lex-program, which I wrote back in May 2004. I've encountered some problems while pasting JAVA-Sourcecode in phpWebSite, which hindered me on adding examples to my Tutorials. As I've been using Lex for another lecture of my study at the same time, I put it to good use here as well.

                     
1 | 2 | 3

Features

a2html does five things:

  1. Convert offending characters to their html equivalents (&, <, >) or escape them ({, }, [, ])
  2. Translate tabulators to the corresponding number of non breaking spaces
  3. Convert everything to a monospaced font (tt tag), putting a hard break (br) on the end of each line.
  4. Number each line, starting by 1
  5. Surround everything with p

Prerequisites

In order to get a2html running on your machine, you need three things.

  1. gcc, the Gnu Compiler Collective
  2. flex, the Fast LEXical analyzer and
  3. make, the utility to maintain groups of programs

If you're running Unix, Linux or MacOSX, you're probably all set. In case you're using Windows, please install CygWin and choose at least the three mentioned programs.

Installation

Installing a2html is rather straight forward.

  1. get it: a2html_0.6.zip(1605)
  2. unzip it to a directory of your choice
  3. compile it by entering make in the directory, where you unzipped it to

that's it, you're all set.

                     
1 | 2 | 3



RSSComments - Make a comment
The comments are owned by the poster. We are not responsible for its content.
RSSAll Articles
2008, 2007, 2006, 2005, 2004

Latest Updates

AdministrativeTexts
updated by freddiemac1993, 2013-06-14
wiki

Re: adventures
created by brittdavis10, 2012-02-23 (1 rply, 3 views)
thread

Re: how to run phpwebsite...
created by alexander, 2011-08-25 (2 rpls, 3607 views)
thread

Re: Forum tags
created by HaroldFaragher, 2011-08-22 (3 rpls, 8488 views)
thread


Zu den KO2100 Foren