⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 manual.in

📁 代码检索工具GLOBAL源码。可用来浏览分析LINUX源码。
💻 IN
字号:
## Copyright (c} 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005#	Tama Communications Corporation## This file is part of GNU GLOBAL.## GNU GLOBAL is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.## GNU GLOBAL is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.## This file is converted to the following files:#	o command source file(for usage and help).#	o man format reference manual.#	o texinfo format reference manual.#@HEADER	HTAGS,1,April 2005,GNU Project@NAME	htags - generate hypertext from source code.@SYNOPSIS	@name{htags} [-acDfFgnosvwx][-d @arg{dbpath}][-m @arg{name}][-S @arg{cgidir}][-t @arg{title}][@arg{htmldir}]@DESCRIPTION	@name{Htags} makes hypertext of C, C++, Yacc, Java, PHP and Assembly source code.	In advance of using this command, you must execute	@xref{gtags,1} from the root directory of the source tree.	Then you can execute @name{htags} from the same place.	@name{Htags} makes an directory named @file{HTML} and generates	hypertext in it.	You can start browsing from @file{HTML/index.html}.	Since @name{htags} generates static hypertext as long as	the @option{-D} or @option{-f} option is not specified,	you can move it anywhere and browse it with any browser without	web server.	You must use same parser for both @xref{gtags,1} and @name{htags}.	If you use the default parser, it is not necessary to consider for it.@OPTIONS	The following options are available:	@begin_itemize	@item{@option{-a}, @option{--alphabet}}		Make an alphabetical function index which is suitable		for a large project.	@item{@option{--caution}}		Include caution message to prohibit downloading.	@item{@option{-c}, @option{--compact}}		Compress html files  by @xref{gzip,1}.		You need to set up a web server so that @xref{gzip,1}		is invoked for each compressed file.		See @file{HTML/.htaccess} that is generated by htags.	@item{@option{--cvsweb} @arg{url}}		Include cvsweb URL. @arg{url} is used as base of URL.	@item{@option{--cvsweb-cvsroot} @arg{cvsroot}}		Specifies cvsroot in cvsweb URL.	@item{@option{-D}, @option{--dynamic}}		Generate object lists dynamically using CGI program.		By default, object lists are generated statically.		Though this option decrease both the size and the generation		time of the hypertext, you need to set up a web server, and 		you cannot move the hypertext from the source directroy.	@item{@option{-d}, @option{--dbpath} @arg{dbpath}}		Specifies the directory in which @file{GTAGS} and @file{GRTAGS}		exist. The default is the current directory.	@item{@option{-f}, @option{--form}}		Support search form using CGI program.		You need to set up a web server, and you cannot move		the hypertext from the source directroy.	@item{@option{-F}, @option{--frame}}		Use frame for each part of the contents.	@item{@option{-g}, @option{--gtags}}		Execute @xref{gtags,1} before creating hypertext.		The @option{-v}, @option{-w} and @arg{dbpath} are passed to @name{gtags}.	@item{@option{--gtagsconf} @arg{file}}		Load user's configuration from @arg{file}.	@item{@option{--gtagslabel} @arg{label}}		@arg{label} is used for the label of configuration file.		The default is @code{default}.	@item{@option{--insert-header} @arg{file}}		Insert custom header derived from @arg{file} after <body> tag.	@item{@option{--insert-footer} @arg{file}}		Insert custom footer derived from @arg{file} before </body> tag.	@item{@option{-m}, @option{--main-func} @arg{name}}		Specify the main function name. The default is @code{main}.	@item{@option{-n}, @option{--line-number}}		Print line numbers. By default, doesn't print them.	@item{@option{--no-map-file}}		Doesn't generate @file{MAP} and @file{FILEMAP} file.		By default, @name{htags} generates them.	@item{@option{-o}, @option{--other}}		Pick up not only source files but also other files except for		binary files.	@item{@option{--statistics}}		Print statistics information.	@item{@option{--style-sheet} @arg{file}}		Load style sheet file and insert it into <head> tag.		If you use the @option{--xhtml} option, you should use		@file{style.css} instead.	@item{@option{-s}, @option{--symbol}}		Make anchors not only for functions but also other symbols.		@file{GSYMS} tag file needed.	@item{@option{-S}, @option{--secure-cgi} @arg{cgidir}}		Write CGI programs into the @arg{cgidir} to realize		a centralised CGI program.		Script alias is @file{/cgi-bin} by default.		You can overwrite this value using config variable		@code{script_alias} in @file{gtags.conf}.	@item{@option{-t}, @option{--title} @arg{title}}		The @arg{title} of this hypertext. The default is the last		component of the current directory.	@item{@option{-v}, @option{--verbose}}		Verbose mode.	@item{@option{-w}, @option{--warning}}		Print warning messages.	@item{@option{-x}, @option{--xhtml}}		Generate XHTML hypertext instead of HTML.		If the @option{--frame} option is specified then		generate XHTML-1.0 Frameset for index.html		and generate XHTML-1.0 Transitional for other files,		else if config variable		@code{xhtml_version} is set to @code{1.1} then generate		XHTML-1.1 else XHTML 1.0 Transitional.	@item{@arg{htmldir}}		The directory in which hypertext is generated.		The default is the current directory.	@end_itemize@EXAMPLES	$ cd /usr/src/sys	# gtags -v	# htags -fFnvat 'Welcom to FreeBSD kernel source tour!'	$ lynx HTML/index.html	$ htags -v --gtags	$ awk '$1 == "main" {print $2}' HTML/MAP	D/348.html	$ lynx HTML/D/348.html	$ cd global	$ htags -gv --cvsweb=http://savannah.gnu.org/cgi-bin/viewcvs/global/global/@FILES	@begin_itemize	@item{@file{GTAGS}}		Tag file for function definitions.	@item{@file{GRTAGS}}		Tag file for function references.	@item{@file{GSYMS}}		Tag file for other symbols.	@item{@file{GPATH}}		Tag file for path of source files.	@item{@file{/etc/gtags.conf}, @file{$HOME/.globalrc}}		Configuration file.	@item{@file{HTML/index.html}}		Index file for hypertext.	@item{@file{HTML/MAP}}		Mapping file for converting tag into path of hypertext.		External system utilize this file. See EXAMPLES.	@item{@file{HTML/FILEMAP}}		Mapping file for converting file name into path of hypertext.		External system utilize this file.	@item{@file{HTML/style.css}}		Style sheet file. This file is generated when the @option{--xhtml}		option is specified.	@end_itemize@ENVIRONMENT	The following environment variables affect the execution of @name{htags}:	@begin_itemize	@item{@var{TMPDIR}}		If this variable is set, its value is used as the directory		to make temporary files. The default is @file{/tmp}.	@item{@var{GTAGSCONF}}		If this variable is set, its value is used as the		configuration file. The default is @file{$HOME/.globalrc}.	@item{@var{GTAGSLABEL}}		If this variable is set, its value is used as the label		of configuration file. The default is @code{default}.	@item{@var{GTAGSCACHE}}		If this variable is set, its value is used as the size of		btree cache. The default is 500000 (bytes).	@end_itemize@CONFIGURATION	The following configuration variables affect the execution of @name{htags}:	If the @option{--xhtml} option is specified then all definitions of	HTML tag are ignored.	Instead, you can customize the appearance using style sheet file	(@file{style.css}).	@begin_itemize	@item{@code{datadir}(string)}		Shared data directory. The default is '/usr/local/share' but		you can change the value using configure script.		@name{Htags} lookup templete files in the 'gtags' directory		in this data directory.	@item{@code{htags_options}(string)}		Default options for @name{htags}. This value is inserted into		the head of arguments.	@item{@code{xhtml_version}(1.0|1.1)}		XHTML version. 1.0 and 1.1 are acceptable. The default is 1.0.	@item{@code{body_begin}(string)}		Begin tag for body. The default is '<body>'.	@item{@code{body_end}(string)}		End tag for body. The default is '</body>'.	@item{@code{table_begin}(string)}		Begin tag for table. The default is '<table>'.	@item{@code{table_end}(string)}		End tag for table. The default is '</table>'.	@item{@code{title_begin}(string)}		Begin tag for Title. The default is '<h1><font color=#cc0000>'.	@item{@code{title_end}(string)}		End tag for Title. The default is '</font></h1>'.	@item{@code{comment_begin}(string)}		Begin tag for comments. The default is '<i><font color=green>'.	@item{@code{comment_end}(string)}		End tag for comments. The default is '</font></i>'.	@item{@code{dynamic}(bool)}		Generate object list dynamically.	@item{@code{sharp_begin}(string)}		Begin tag for 'define'. The default is '<font color=darkred>'.	@item{@code{sharp_end}(string)}		End tag for 'define'. The default is '</font>'.	@item{@code{brace_begin}(string)}		Begin tag for brace. The default is '<font color=blue>'.	@item{@code{brace_end}(string)}		End tag for brace. The default is '</font>'.	@item{@code{reserved_begin}(string)}		Begin tag for reserved word. The default is '<b>'.	@item{@code{reserved_end}(string)}		End tag for reserved word. The default is '</b>'.	@item{@code{position_begin}(string)}		Begin tag for posiotion mark. The default is '<font color=gray>'.	@item{@code{position_end}(string)}		End tag for posiotion mark. The default is '</font>'.	@item{@code{colorize_warned_line}(boolean)}		Colorize warned line using @code{warned_line_begin} and @code{warned_line_end}.		The default is false.	@item{@code{warned_line_begin}(string)}		Begin tag for line which htags warned. The default is '<span style="background-color:yellow">'.	@item{@code{warned_line_end}(string)}		End tag for line which htags warned. The default is '</span>'.	@item{@code{hr}(string)}		Horizontal rules. The default is '<hr>'.	@item{@code{ncol}(number)}		Columns of line number. The default is 4.	@item{@code{tabs}(number)}		Tab stop. The default is 8.	@item{@code{full_path}(boolean)}		List file names with full path in file index.		By default, list just the last component of a path.	@item{@code{table_list}(boolean)}		List tags using table tag. The default is false.	@item{@code{normal_suffix}(string)}		Suffix for normal html file. The default is 'html'.	@item{@code{no_map_file}(boolean)}		Doesn't generate @file{MAP} file. The default is false.	@item{@code{gzipped_suffix}(string)}		Suffix for compressed html file. The default is 'ghtml'.	@item{@code{script_alias}(string)}		Script alias for safe cgi script (@option{-S}).	@item{@code{show_position}(boolean)}		Show position per function definition. The default is false.	@item{@code{symbol}(boolean)}		Make anchors not only for functions but also other symbols.		@file{GSYMS} tag file needed.	@item{@code{definition_header}(no|before|right|after)}		Position of link header. The default is 'no'.	@item{@code{other_files}(boolean)}		File index includes not only source files but also other files. The default is false.	@item{@code{enable_grep}(boolean)}		Enable grep search using CGI program. The default is false.		When this function is enabled, you cannot move hypertext from source directory.	@item{@code{enable_idutils}(boolean)}		Enable id-utils search using CGI program. The default is false.		When this function is enabled, you cannot move hypertext from source directory.	@item{@code{include_file_suffixes}(comma separated list)}		Suffixes of include file. The default is 'h,hxx,hpp,H,inc.php'.	@item{@code{langmap}(comma separated list)}		Language mapping. Each comma-separated map consists of		the language name, a colon, and a list of file extensions.		Default mapping is 'c:.c.h,yacc:.y,asm:.s.S,java:.java,cpp:.c++.cc.cpp.cxx.hxx.hpp.C.H,php:.php.php3.phtml'.	@item{@code{copy_files}(boolean)}		Copy files instead of linking.		When the @option{-f} option is used, @name{htags} make links		of tag files in @file{cgi-bin} directory by default.	@end_itemize@DIAGNOSTICS	@name{Htags} exits with a non 0 value if an error occurred, 0 otherwise.@MESSAGE FORMAT	Verbose message has important level. The most important level is 0,	the second it 1 and so on. All the message has level numbers leading	blanks.@SEE ALSO	@xref{gtags-parser,1},	@xref{global,1},	@xref{gtags,1}.        GNU GLOBAL source code tag system@br        (http://www.gnu.org/software/global/).@BUG	Generated hypertext is VERY LARGE.	In advance, check the space of your disk.	PHP supprt is far from complete.@AUTHOR	Tama Communications Corporation.@HISTORY	The @name{htags} command appeared in FreeBSD 2.2.2.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -