Node: Converting Ada Files to html with gnathtml, Next: Installing gnathtml, Previous: Ada Mode for Glide, Up: Other Utility Programs
gnathtml
This Perl
script allows Ada source files to be browsed using
standard Web browsers. For installation procedure, see the section
See Installing gnathtml.
Ada reserved keywords are highlighted in a bold font and Ada comments in
a blue font. Unless your program was compiled with the gcc -gnatx
switch to suppress the generation of cross-referencing information, user
defined variables and types will appear in a different color; you will
be able to click on any identifier and go to its declaration.
The command line is as follow:
$ perl gnathtml.pl [switches] ada-files
You can pass it as many Ada files as you want. gnathtml
will generate
an html file for every ada file, and a global file called index.htm
.
This file is an index of every identifier defined in the files.
The available switches are the following ones :
-83
-cc
color
-d
with
command, the latter will also be converted to html.
Only the files in the user project will be converted to html, not the files
in the run-time library itself.
-D
gnathtml
will also look
for files in the run-time library, and generate html files for them.
-f
-f
on the command line, then links will be generated for local
entities too.
-l
number
gnathtml
will number the html files every number line.
-I
dir
.ali
files) and
source files. You can provide several -I switches on the command line,
and the directories will be parsed in the order of the command line.
-o
dir
html/
.
-p
file
.adp
files
to give the directories where Emacs can find sources and object files.
Using this switch, you can tell gnathtml to use these files. This allows
you to get an html version of your application, even if it is spread
over multiple directories.
-sc
color
-t
file