转载:http://www.gnu.org/software/global/globaldoc.html#SEC2
3.8 Hypertext generator
You can use GLOBAL's facilities from web browsers.
3.8.1 Features
- Htags makes a hypertext from C, C++, Yacc and Java source files.
- Once the hypertext is generated, you need nothing other than a web browser.
- You can move the hypertext to anywhere. It is independent of the source code.
- You can use all of your browser's functions, such as search, history, bookmark, save, frames, windows, etc.
3.8.2 Preparation
At first, you must ensure that you have a lot of disk space for hypertext. For example, FreeBSD 7.0 kernel source code (123MB) requires disk space from 600 to 1200MB.
source code(/usr/src/sys) 123MB
GPATH,GTAGS,GRTAGS,GSYMS 72MB
hypertext (with no option) 645MB
hypertext (with -s option) 1168MB
hypertext (with -D option) 383MB
hypertext (with -s and -D option) 616MB
Please invoke gtags(1)(see section 5.2 gtags - create tag files for global. ) and htags(1)(see section 5.3 htags - generate hypertext from source code. ) in order like this:
(at the root directory of your source project)
$ gtags # make tag files(GTAGS,GRTAGS,GSYMS)
$ htags # make hypertext(HTML/)
Then you will find a directory named `HTML' in the current directory.
Htags has rich options. If you are new on htags then you are recommended to use the `--suggest' option. This option makes some popular options effective, and invokes gtags(1) if there is no tag files.
$ htags --suggest