php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #48482
Patch bug48482-2 revision 2014-12-28 19:50 UTC by kalle@php.net
Patch bug48482-doc revision 2014-12-27 18:33 UTC by kalle@php.net
Patch bug48482 revision 2014-12-27 18:27 UTC by kalle@php.net

Patch bug48482-doc for *General Issues Bug #48482

Patch version 2014-12-27 18:33 UTC

Return to Bug #48482 | Download this patch
Patch Revisions:

Developer: kalle@php.net

Index: highlight-file.xml
===================================================================
--- highlight-file.xml	(revision 335400)
+++ highlight-file.xml	(working copy)
@@ -12,6 +12,7 @@
    <type>mixed</type><methodname>highlight_file</methodname>
    <methodparam><type>string</type><parameter>filename</parameter></methodparam>
    <methodparam choice="opt"><type>bool</type><parameter>return</parameter><initializer>false</initializer></methodparam>
+   <methodparam choice="opt"><type>bool</type><parameter>is_xhtml</parameter><initializer>true</initializer></methodparam>
   </methodsynopsis>
   <para>
    Prints out or returns a syntax highlighted version of the code contained
@@ -53,6 +54,16 @@
       </para>
      </listitem>
     </varlistentry>
+    <varlistentry>
+     <term><parameter>is_xhtml</parameter></term>
+     <listitem>
+      <para>
+       Set this parameter to &false; to make this function return HTML 
+       compatible syntax. Defaults to &true;, meaning it will return an
+       XHTML compatible syntax.
+      </para>
+     </listitem>
+    </varlistentry>
    </variablelist>
   </para>
  </refsect1>
@@ -79,6 +90,12 @@
      </thead>
      <tbody>
       <row>
+       <entry>7.0.0</entry>
+       <entry>
+        Added the <parameter>is_xhtml</parameter> parameter.
+       </entry>
+      </row>
+      <row>
        <entry>4.2.1</entry>
        <entry>
         This function is now also affected by <link
Index: highlight-string.xml
===================================================================
--- highlight-string.xml	(revision 335400)
+++ highlight-string.xml	(working copy)
@@ -12,6 +12,7 @@
    <type>mixed</type><methodname>highlight_string</methodname>
    <methodparam><type>string</type><parameter>str</parameter></methodparam>
    <methodparam choice="opt"><type>bool</type><parameter>return</parameter><initializer>false</initializer></methodparam>
+   <methodparam choice="opt"><type>bool</type><parameter>is_xhtml</parameter><initializer>true</initializer></methodparam>
   </methodsynopsis>
   <simpara>
    Outputs or returns html markup for a syntax highlighted version of the given PHP code
@@ -40,6 +41,16 @@
       </para>
      </listitem>
     </varlistentry>
+    <varlistentry>
+     <term><parameter>is_xhtml</parameter></term>
+     <listitem>
+      <para>
+       Set this parameter to &false; to make this function return HTML 
+       compatible syntax. Defaults to &true;, meaning it will return an
+       XHTML compatible syntax.
+      </para>
+     </listitem>
+    </varlistentry>
    </variablelist>
   </para>
  </refsect1>
@@ -53,6 +64,30 @@
   </para>
  </refsect1>
 
+ <refsect1 role="changelog">
+  &reftitle.changelog;
+  <para>
+   <informaltable>
+    <tgroup cols="2">
+     <thead>
+      <row>
+       <entry>&Version;</entry>
+       <entry>&Description;</entry>
+      </row>
+     </thead>
+     <tbody>
+      <row>
+       <entry>7.0.0</entry>
+       <entry>
+        Added the <parameter>is_xhtml</parameter> parameter.
+       </entry>
+      </row>
+     </tbody>
+    </tgroup>
+   </informaltable>
+  </para>
+ </refsect1>
+
  <refsect1 role="examples">
   &reftitle.examples;
   <para>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 15:01:29 2024 UTC