📄 quickref.html
字号:
<TR>
<TD colSpan=2>This option specifies what level of accessibility checking,
if any, that Tidy should do. Level 0 is equivalent to Tidy Classic's
accessibility checking. For more information on Tidy's accessibility
checking, visit the <A
href="http://www.aprompt.ca/Tidy/accessibilitychecks.html">Adaptive
Technology Resource Centre at the University of Toronto</A>. </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=show-errors vAlign=top>show-errors</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Integer</STRONG><BR>Default:
<STRONG>6</STRONG><BR>Example: <STRONG>0, 1, 2, ...</STRONG></TD>
<TD vAlign=top align=right></TD></TR>
<TR>
<TD colSpan=2>This option specifies the number Tidy uses to determine if
further errors should be shown. If set to 0, then no errors are shown.
</TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=show-warnings vAlign=top>show-warnings</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Boolean</STRONG><BR>Default:
<STRONG>yes</STRONG><BR>Example: <STRONG>y/n, yes/no, t/f, true/false,
1/0</STRONG></TD>
<TD vAlign=top align=right></TD></TR>
<TR>
<TD colSpan=2>This option specifies if Tidy should suppress warnings. This
can be useful when a few errors are hidden in a flurry of warnings. </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD> </TD></TR>
<TR vAlign=bottom>
<TD class=h2 id=PrettyPrintReference vAlign=top colSpan=2>Pretty Print
Options Reference </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=break-before-br vAlign=top>break-before-br</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Boolean</STRONG><BR>Default:
<STRONG>no</STRONG><BR>Example: <STRONG>y/n, yes/no, t/f, true/false,
1/0</STRONG></TD>
<TD vAlign=top align=right></TD></TR>
<TR>
<TD colSpan=2>This option specifies if Tidy should output a line break
before each <BR> element. </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=indent vAlign=top>indent</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>AutoBool</STRONG><BR>Default:
<STRONG>no</STRONG><BR>Example: <STRONG>auto, y/n, yes/no, t/f,
true/false, 1/0</STRONG></TD>
<TD vAlign=top align=right><A
href="quickref.html#indent-spaces">indent-spaces</A>
</TD></TR>
<TR>
<TD colSpan=2>This option specifies if Tidy should indent block-level
tags. If set to "auto", this option causes Tidy to decide whether or not
to indent the content of tags such as TITLE, H1-H6, LI, TD, TD, or P
depending on whether or not the content includes a block-level element.
You are advised to avoid setting indent to yes as this can expose layout
bugs in some browsers. </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=indent-attributes vAlign=top>indent-attributes</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Boolean</STRONG><BR>Default:
<STRONG>no</STRONG><BR>Example: <STRONG>y/n, yes/no, t/f, true/false,
1/0</STRONG></TD>
<TD vAlign=top align=right></TD></TR>
<TR>
<TD colSpan=2>This option specifies if Tidy should begin each attribute on
a new line. </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=indent-spaces vAlign=top>indent-spaces</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Integer</STRONG><BR>Default:
<STRONG>2</STRONG><BR>Example: <STRONG>0, 1, 2, ...</STRONG></TD>
<TD vAlign=top align=right><A
href="quickref.html#indent">indent</A>
</TD></TR>
<TR>
<TD colSpan=2>This option specifies the number of spaces Tidy uses to
indent content, when indentation is enabled. </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=markup vAlign=top>markup</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Boolean</STRONG><BR>Default:
<STRONG>yes</STRONG><BR>Example: <STRONG>y/n, yes/no, t/f, true/false,
1/0</STRONG></TD>
<TD vAlign=top align=right></TD></TR>
<TR>
<TD colSpan=2>This option specifies if Tidy should generate a pretty
printed version of the markup. Note that Tidy won't generate a pretty
printed version if it finds significant errors (see force-output). </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=punctuation-wrap vAlign=top>punctuation-wrap</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Boolean</STRONG><BR>Default:
<STRONG>no</STRONG><BR>Example: <STRONG>y/n, yes/no, t/f, true/false,
1/0</STRONG></TD>
<TD vAlign=top align=right></TD></TR>
<TR>
<TD colSpan=2>This option specifies if Tidy should line wrap after some
Unicode or Chinese punctuation characters. </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=split vAlign=top>split</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Boolean</STRONG><BR>Default:
<STRONG>no</STRONG><BR>Example: <STRONG>y/n, yes/no, t/f, true/false,
1/0</STRONG></TD>
<TD vAlign=top align=right></TD></TR>
<TR>
<TD colSpan=2>Currently not used. Tidy Classic only. </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=tab-size vAlign=top>tab-size</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Integer</STRONG><BR>Default:
<STRONG>8</STRONG><BR>Example: <STRONG>0, 1, 2, ...</STRONG></TD>
<TD vAlign=top align=right></TD></TR>
<TR>
<TD colSpan=2>This option specifies the number of columns that Tidy uses
between successive tab stops. It is used to map tabs to spaces when
reading the input. Tidy never outputs tabs. </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=vertical-space vAlign=top>vertical-space</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Boolean</STRONG><BR>Default:
<STRONG>no</STRONG><BR>Example: <STRONG>y/n, yes/no, t/f, true/false,
1/0</STRONG></TD>
<TD vAlign=top align=right></TD></TR>
<TR>
<TD colSpan=2>This option specifies if Tidy should add some empty lines
for readability. </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=wrap vAlign=top>wrap</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Integer</STRONG><BR>Default:
<STRONG>68</STRONG><BR>Example: <STRONG>0 (no wrapping), 1, 2,
...</STRONG></TD>
<TD vAlign=top align=right></TD></TR>
<TR>
<TD colSpan=2>This option specifies the right margin Tidy uses for line
wrapping. Tidy tries to wrap lines so that they do not exceed this length.
Set wrap to zero if you want to disable line wrapping. </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=wrap-asp vAlign=top>wrap-asp</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Boolean</STRONG><BR>Default:
<STRONG>yes</STRONG><BR>Example: <STRONG>y/n, yes/no, t/f, true/false,
1/0</STRONG></TD>
<TD vAlign=top align=right></TD></TR>
<TR>
<TD colSpan=2>This option specifies if Tidy should line wrap text
contained within ASP pseudo elements, which look like: <% ... %>.
</TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=wrap-attributes vAlign=top>wrap-attributes</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Boolean</STRONG><BR>Default:
<STRONG>no</STRONG><BR>Example: <STRONG>y/n, yes/no, t/f, true/false,
1/0</STRONG></TD>
<TD vAlign=top align=right><A
href="quickref.html#wrap-script-literals">wrap-script-literals</A>
</TD></TR>
<TR>
<TD colSpan=2>This option specifies if Tidy should line wrap attribute
values, for easier editing. This option can be set independently of
wrap-script-literals. </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=wrap-jste vAlign=top>wrap-jste</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Boolean</STRONG><BR>Default:
<STRONG>yes</STRONG><BR>Example: <STRONG>y/n, yes/no, t/f, true/false,
1/0</STRONG></TD>
<TD vAlign=top align=right></TD></TR>
<TR>
<TD colSpan=2>This option specifies if Tidy should line wrap text
contained within JSTE pseudo elements, which look like: <# ... #>.
</TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=wrap-php vAlign=top>wrap-php</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Boolean</STRONG><BR>Default:
<STRONG>yes</STRONG><BR>Example: <STRONG>y/n, yes/no, t/f, true/false,
1/0</STRONG></TD>
<TD vAlign=top align=right></TD></TR>
<TR>
<TD colSpan=2>This option specifies if Tidy should line wrap text
contained within PHP pseudo elements, which look like: <?php ... ?>.
</TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=wrap-script-literals
vAlign=top>wrap-script-literals</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Boolean</STRONG><BR>Default:
<STRONG>no</STRONG><BR>Example: <STRONG>y/n, yes/no, t/f, true/false,
1/0</STRONG></TD>
<TD vAlign=top align=right><A
href="quickref.html#wrap-attributes">wrap-attributes</A>
</TD></TR>
<TR>
<TD colSpan=2>This option specifies if Tidy should line wrap string
literals that appear in script attributes. Tidy wraps long script string
literals by inserting a backslash character before the line break. </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=wrap-sections vAlign=top>wrap-sections</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Boolean</STRONG><BR>Default:
<STRONG>yes</STRONG><BR>Example: <STRONG>y/n, yes/no, t/f, true/false,
1/0</STRONG></TD>
<TD vAlign=top align=right></TD></TR>
<TR>
<TD colSpan=2>This option specifies if Tidy should line wrap text
contained within <![ ... ]> section tags. </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD> </TD></TR>
<TR vAlign=bottom>
<TD class=h2 id=EncodingReference vAlign=top colSpan=2>Character Encoding
Options Reference </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=ascii-chars vAlign=top>ascii-chars</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Boolean</STRONG><BR>Default:
<STRONG>no</STRONG><BR>Example: <STRONG>y/n, yes/no, t/f, true/false,
1/0</STRONG></TD>
<TD vAlign=top align=right><A
href="quickref.html#clean">clean</A>
</TD></TR>
<TR>
<TD colSpan=2>Can be used to modify behavior of -c (--clean yes) option.
If set to "yes" when using -c, &emdash;, &rdquo;, and other named
character entities are downgraded to their closest ascii equivalents.
</TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=char-encoding vAlign=top>char-encoding</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Encoding</STRONG><BR>Default:
<STRONG>ascii</STRONG><BR>Example: <STRONG>raw, ascii, latin0, latin1,
utf8, iso2022, mac, win1252, ibm858, utf16le, utf16be, utf16, big5,
shiftjis</STRONG></TD>
<TD vAlign=top align=right><A
href="quickref.html#input-encoding">input-encoding</A>
<BR><A
href="quickref.html#output-encoding">output-encoding</A>
</TD></TR>
<TR>
<TD colSpan=2>This option specifies the character encoding Tidy uses for
both the input and output. For ascii, Tidy will accept Latin-1
(ISO-8859-1) character values, but will use entities for all characters
whose value > 127. For raw, Tidy will output values above 127 without
translating them into entities. For latin1, characters above 255 will be
written as entities. For utf8, Tidy assumes that both input and output is
encoded as UTF-8. You can use iso2022 for files encoded using the ISO-2022
family of encodings e.g. ISO-2022-JP. For mac and win1252, Tidy will
accept vendor specific character values, but will use entities for all
characters whose value > 127. </TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD class=tabletitle id=input-encoding vAlign=top>input-encoding</TD>
<TD class=tabletitlelink vAlign=top align=right><A
href="quickref.html#top">Top</A> </TD></TR>
<TR>
<TD vAlign=top>Type: <STRONG>Encoding</STRONG><BR>Default:
<STRONG>latin1</STRONG><B
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -