phpDocumentor Tutorial Config (bold inside <programlistin

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

phpDocumentor Tutorial Config (bold inside <programlistin

Post by Ollie Saunders »

This is a long shot but does anybody know how I can embolden certain parts of php code (inside programlisting tags) in a phpDoc tutorial. I've done this test:

Code: Select all

    <programlisting role="php">
echo $here . $is . $some . PHP_EOL;
<b>$does->this->appear->bold ? 'yes' : 'no';</b>
<emphasis>$does->this->appear->bold ? 'yes' : 'no';</emphasis>
<u>$does->this->appear->bold ? 'yes' : 'no';</u>
<i>$does->this->appear->bold ? 'yes' : 'no';</i>
<important>$does->this->appear->bold ? 'yes' : 'no';</important>
     </programlisting>
     <para>
         This is <important>bold</important>.
     </para>
And I get this back:
Output wrote:1. echo $here . $is . $some . PHP_EOL;
2. $does->this->appear->bold ? 'yes' : 'no';
3. <em>$does->this->appear->bold ? 'yes' : 'no';</em>
4. $does->this->appear->bold ? 'yes' : 'no';
5. $does->this->appear->bold ? 'yes' : 'no';
6. <strong>$does->this->appear->bold ? 'yes' : 'no';</strong>

This is bold.
I guess I need to modify the docBook to HTML convertor but I've no idea where to look.
Post Reply