Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ you can write a custom syntax highlighter.
A syntax highlighter for PhD is nothing more than a simple PHP class
that has two methods: `factory` and `highlight`.

`factory` is static, takes the format name (i.e. `pdf`, `xhtml`,
`factory` is static, takes the format name (i.e. `xhtml`,
`troff`) as its only parameter and returns the highlighter instance object
for the given format. The method is called for each output format the
documentation is rendered to.
Expand Down Expand Up @@ -234,13 +234,6 @@ PhD currently supports the following output formats:
<tr>
<td rowspan="6"></td>
<td>howto</td>
</tr>
<tr>
<td>pdf</td>
</tr>
<tr>
<td>bigpdf</td>
</tr>
<tr>
<td>kdevelop</td>
</tr>
Expand Down
8 changes: 3 additions & 5 deletions docs/phd-guide/phd-guide.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<para>PhD is PHP's very own DocBook 5 rendering system. It is used to
convert the <acronym>PHP</acronym> Manual and PEAR Documentation into
different output formats like XHTML, PDF, Man pages and CHM.</para>
different output formats like XHTML, Man pages and CHM.</para>

<para>The goal of PhD is to become a fast, general DocBook rendering
system. At the moment of writing, PhD is already very fast: It can create
Expand Down Expand Up @@ -261,8 +261,6 @@ Supported packages:
php
howto
manpage
pdf
bigpdf
kdevelop
chm
tocfeed
Expand All @@ -280,7 +278,7 @@ Supported packages:


<para>You can tell by the output of the <literal>--list</literal> option
that PhD can also be used to render the docs as a PDF file, or as Unix
that PhD can also be used to render the docs as Unix
Man Pages.</para>

<para>To select a format and package, you must use the <literal>-f
Expand Down Expand Up @@ -645,7 +643,7 @@ $ pear install mediawiki/geshi]]></screen>
and <literal>highlight</literal>.</para>

<para><literal>factory</literal> is static and takes the format name
(i.e. <literal>pdf</literal>, <literal>xhtml</literal>,
(i.e. <literal>xhtml</literal>,
<literal>troff</literal>) as only parameter. It returns
the highlighter instance object for the given format.
The method is called for each output format the documentation
Expand Down
2 changes: 1 addition & 1 deletion phpdotnet/phd/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ public function rowspan($attrs) {
*
* @param string $text Text to highlight
* @param string $role Source code role to use (php, xml, html, ...)
* @param string $format Format to highlight (pdf, xhtml, troff, ...)
* @param string $format Format to highlight (xhtml, troff, ...)
*
* @return string Highlighted code
*/
Expand Down
Loading