phpdox icon indicating copy to clipboard operation
phpdox copied to clipboard

<code> not supported in generated HTML

Open bergie opened this issue 12 years ago • 2 comments

Using PhpDoc code tags doesn't seem to be recognized by phpdox.

In generated HTML docs I see stuff like:

<code>// Loads the component for the first time $_MIDCOM->componentloader->load('fi.protie.navigation'); // Initializes the class $navigation = new fi_protie_navigation();// Display only nodes (folders)...</code>See the attributes of this class for additional customizing options.

bergie avatar Aug 21 '11 09:08 bergie

Actually right now there is no html handling within the phpdox output as of now. The main problem is that there is no concept of html nodes in non html contexts like PDF or text so the rendering style is not defined for those. So I personally dislike having html tags within documentation blocks.

I do realize though that it is a common practice so there needs to be a way to get it over. A quick fix would probably be to disable output escaping for those so they get copied over 1:1.

theseer avatar Aug 21 '11 10:08 theseer

Are there any news related to this?

Or could you tell me how I could disable the escaping for the output?

Grisu118 avatar Apr 27 '15 11:04 Grisu118