mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-20 02:48:56 +00:00

- All id attributes are now xml:id - Add docbook namespace to all root elements - Replace <ulink /> with <link xlink:href /> - Minor markup fixes here and there git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@238160 c90b9560-bf6c-de11-be94-00142212c4b1
166 lines
4 KiB
XML
166 lines
4 KiB
XML
<?xml version='1.0' encoding='iso-8859-1'?>
|
|
<!-- $Revision: 1.7 $ -->
|
|
<refentry xml:id="function.tidy-get-config" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>tidy_get_config</refname>
|
|
<refpurpose>
|
|
Get current Tidy configuration
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<para>Procedural style:</para>
|
|
<methodsynopsis>
|
|
<type>array</type><methodname>tidy_get_config</methodname>
|
|
<methodparam><type>tidy</type><parameter>object</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>Object oriented style:</para>
|
|
<methodsynopsis>
|
|
<type>array</type><methodname>tidy->getConfig</methodname>
|
|
<void />
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>tidy_get_config</function> returns an array with the
|
|
configuration options in use by the given tidy
|
|
<parameter>object</parameter>.
|
|
</para>
|
|
<para>
|
|
For an explanation about each option, visit <link
|
|
xlink:href="&url.tidy.conf;">&url.tidy.conf;</link>.
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title><function>tidy_get_config</function> example</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$html = '<p>test</p>';
|
|
$config = array('indent' => TRUE,
|
|
'output-xhtml' => TRUE,
|
|
'wrap' => 200);
|
|
|
|
$tidy = tidy_parse_string($html, $config);
|
|
|
|
print_r(tidy_get_config($tidy));
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs;
|
|
<screen>
|
|
<![CDATA[
|
|
Array
|
|
(
|
|
[indent-spaces] => 2
|
|
[wrap] => 200
|
|
[tab-size] => 8
|
|
[char-encoding] => 1
|
|
[input-encoding] => 3
|
|
[output-encoding] => 1
|
|
[newline] => 1
|
|
[doctype-mode] => 1
|
|
[doctype] =>
|
|
[repeated-attributes] => 1
|
|
[alt-text] =>
|
|
[slide-style] =>
|
|
[error-file] =>
|
|
[output-file] =>
|
|
[write-back] =>
|
|
[markup] => 1
|
|
[show-warnings] => 1
|
|
[quiet] =>
|
|
[indent] => 1
|
|
[hide-endtags] =>
|
|
[input-xml] =>
|
|
[output-xml] => 1
|
|
[output-xhtml] => 1
|
|
[output-html] =>
|
|
[add-xml-decl] =>
|
|
[uppercase-tags] =>
|
|
[uppercase-attributes] =>
|
|
[bare] =>
|
|
[clean] =>
|
|
[logical-emphasis] =>
|
|
[drop-proprietary-attributes] =>
|
|
[drop-font-tags] =>
|
|
[drop-empty-paras] => 1
|
|
[fix-bad-comments] => 1
|
|
[break-before-br] =>
|
|
[split] =>
|
|
[numeric-entities] =>
|
|
[quote-marks] =>
|
|
[quote-nbsp] => 1
|
|
[quote-ampersand] => 1
|
|
[wrap-attributes] =>
|
|
[wrap-script-literals] =>
|
|
[wrap-sections] => 1
|
|
[wrap-asp] => 1
|
|
[wrap-jste] => 1
|
|
[wrap-php] => 1
|
|
[fix-backslash] => 1
|
|
[indent-attributes] =>
|
|
[assume-xml-procins] =>
|
|
[add-xml-space] =>
|
|
[enclose-text] =>
|
|
[enclose-block-text] =>
|
|
[keep-time] =>
|
|
[word-2000] =>
|
|
[tidy-mark] =>
|
|
[gnu-emacs] =>
|
|
[gnu-emacs-file] =>
|
|
[literal-attributes] =>
|
|
[show-body-only] =>
|
|
[fix-uri] => 1
|
|
[lower-literals] => 1
|
|
[hide-comments] =>
|
|
[indent-cdata] =>
|
|
[force-output] => 1
|
|
[show-errors] => 6
|
|
[ascii-chars] => 1
|
|
[join-classes] =>
|
|
[join-styles] => 1
|
|
[escape-cdata] =>
|
|
[language] =>
|
|
[ncr] => 1
|
|
[output-bom] => 2
|
|
[replace-color] =>
|
|
[css-prefix] =>
|
|
[new-inline-tags] =>
|
|
[new-blocklevel-tags] =>
|
|
[new-empty-tags] =>
|
|
[new-pre-tags] =>
|
|
[accessibility-check] => 0
|
|
[vertical-space] =>
|
|
[punctuation-wrap] =>
|
|
[merge-divs] => 1
|
|
)
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
See also <function>tidy_reset_config</function> and
|
|
<function>tidy_save_config</function>.
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|