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

📄 toc.1

📁 HTML-XML-utils由一套小型C程序(过滤器)组成
💻 1
字号:
.de d \" begin display.sp.in +4.nf...de e \" end display.in -4.fi.sp...TH man 1 "2 Dec 1998".SH NAMEtoc \- insert a table of contents in an HTML file.SH SYNOPSIS.B toc.RB "[\| " \-x " \|]".RB "[\| " \-l.IR low " \|]".RB "[\| " \-h.IR high " \|]".RB "[\| " file " \|]".RB "[\| " \-t " \|]".SH DESCRIPTION.LPThe.B toccommand reads an HTML file, inserts ID attributes in all H1 to H6 thatdon't have one already, and also inserts A elements with NAMEattributes, so old browsers will recognize the H1 to H6 headers astarget anchors as well. The output is written to stdout..LPIf there is a comment of the form.d<!\-\-toc\-\->.eor a pair of comments.d<!\-\-begin-toc\-\-><!\-\-end-toc\-\->.ethen the comment, or the pair with everything in between will bereplaced by a table of contents, consisting of a list (UL) of links toall headers in the document..LPIf a header has a CLASS attribute with as value (or one of its values)the keyword "no-toc", then that header will not appear in the tableof contents..SH OPTIONSThe following options are supported:.TP 10.B \-xUse XML conventions: empty elements are written with a slash at theend: <IMG\ />.TP.BI \-l " low"Sets the lowest numbered header to appear in the table ofcontent. Default is 1 (i.e., H1)..TP.BI \-h " high"Sets the highest numbered header to appear in the table ofcontent. Default is 6 (i.e., H6)..TP.B \-tNormally,.B tocadds both ID attributes and empty A elements with a NAME attribute andCLASS="bctarget", so that older browsers that do no understand ID willstill find the target. With this option, the A elements will not begenerated..SH OPERANDSThe following operand is supported:.TP 10.I fileThe name of an HTML file. If absent, standard input is read instead..SH "EXIT STATUS"The following exit values are returned:.TP 10.B 0Successful completion..TP.B >0An error occurred in the parsing of the HTML file..B tocwill try to correct the error and produce output anyway..SH "SEE ALSO".BR num (1),.BR normalize (1),.BR xml2asc (1).BR asc2xml (1).SH BUGS.LPThe error recovery for incorrect HTML is primitive.

⌨️ 快捷键说明

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