Tutorial


Ada2html adds hypertext link to ada source files, ending in .ada, .adb or .ads, to generate HTML file. Therefore, it makes easier for us to browse through Ada source files with number of links that have been added. It links spec file with body file and function call with function identification. Also, HTML file displays a nicely formatted ada source code with Ada keywords bolded and comments italicized. In addition, Ada2html generates a master list of compilation units and puts that list in a file named "pkglist.html".

Ada2html supports the following flag:

  • -c the following parameter is HTML text to include at the bottom of every generated page; this is intended to permit connections to a "central" page. By default no text like this is included.

  • -s this will use ".htm" for file extensions instead of ".html"

  • -k this will cause prefixes to have 8 characters or less.

  • -x this will generate cross-reference files for each file.

  • -m this will allow the user to attach e-mail address. Ex: ada2html -m "mailto:pxayadet@galaxy" *.ad[bs]

  • -f this will ignor certain types of cross refernces if they are in the same file.

    Format of running command line:

    ada2html [options]* [Ada_source_filenames]*