diff --git a/language-snippets.ent b/language-snippets.ent
index 88097457d6..97e30a34eb 100644
--- a/language-snippets.ent
+++ b/language-snippets.ent
@@ -291,3 +291,10 @@ Tidy 1.0. It became obsolete in Tidy 2.0 and thus has been removed.The optional parameters
config and encoding were
added in Tidy 2.0.'>
+
+The config parameter can be passed either as an array
+or as a string. If you pass it as a string, it means the name of the configuration file, otherwise
+it is interpreted as the options themselves. Check &url.tidy.conf;
+for an explanation about each option.The encoding parameter sets the
+encoding for input/output documents. The possible values for encoding are:
+ascii, latin0, latin1, raw, utf8, iso202, utf16le, utf16be, utf16, mac, win1252, ibm858, big5 and shiftjis.'>
diff --git a/reference/tidy/functions/tidy-diagnose.xml b/reference/tidy/functions/tidy-diagnose.xml
index 4d87926539..a33e1ccb45 100644
--- a/reference/tidy/functions/tidy-diagnose.xml
+++ b/reference/tidy/functions/tidy-diagnose.xml
@@ -1,5 +1,5 @@
-
+
tidy_diagnose
@@ -17,6 +17,9 @@
tidy_diagnose runs diagnostic tests on the given
resource.
+
+ &return.success;
+
diff --git a/reference/tidy/functions/tidy-parse-file.xml b/reference/tidy/functions/tidy-parse-file.xml
index 4f3374a102..47ce0d857e 100644
--- a/reference/tidy/functions/tidy-parse-file.xml
+++ b/reference/tidy/functions/tidy-parse-file.xml
@@ -1,5 +1,5 @@
-
+
tidy_parse_file
@@ -19,7 +19,27 @@
This function parses the given file.
- ¬e.tidy.2only;
+ &tidy.conf-enc;
+
+
+ tidy_parse_file example
+
+cleanRepair();
+
+if(!empty($tidy->error_buf)) {
+ echo "The following errors or warnings occured:\n";
+ echo $tidy->error_buf;
+}
+?>
+]]>
+
+
+
+ ¬e.tidy.2only;
See also tidy_parse_string,
tidy_parse_string and
diff --git a/reference/tidy/functions/tidy-parse-string.xml b/reference/tidy/functions/tidy-parse-string.xml
index 2b79e9807a..ff48fe5d7f 100644
--- a/reference/tidy/functions/tidy-parse-string.xml
+++ b/reference/tidy/functions/tidy-parse-string.xml
@@ -1,5 +1,5 @@
-
+
tidy_parse_string
@@ -19,6 +19,7 @@
tidy_parse_string parses a document stored in a
string.
+ &tidy.conf-enc;
tidy_parse_string example
diff --git a/reference/tidy/functions/tidy-repair-file.xml b/reference/tidy/functions/tidy-repair-file.xml
index b96007a49f..0595a7f1a2 100644
--- a/reference/tidy/functions/tidy-repair-file.xml
+++ b/reference/tidy/functions/tidy-repair-file.xml
@@ -1,5 +1,5 @@
-
+
tidy_repair_file
@@ -19,6 +19,7 @@
This function repairs the given file and returns it as a string.
+ &tidy.conf-enc;
tidy_repair_file example
diff --git a/reference/tidy/functions/tidy-repair-string.xml b/reference/tidy/functions/tidy-repair-string.xml
index bba021220a..b9fcfc09e3 100644
--- a/reference/tidy/functions/tidy-repair-string.xml
+++ b/reference/tidy/functions/tidy-repair-string.xml
@@ -1,5 +1,5 @@
-
+
tidy_repair_string
@@ -18,6 +18,7 @@
This function repairs the given string.
+ &tidy.conf-enc;
tidy_repair_string example