Handling of the HTML "pre" tag
Moderator: Thorsten
Handling of the HTML "pre" tag
It appears that the handling of the HTML "pre" tag has changed in version 1.5. In previous (1.4.x) versions, it would work as expected if it were placed in an article. With the current version though, preformatted text made with the "pre" tag takes on a reddish hue and the PHP tags within it become visible when viewed in the FAQ itself (not in the editor.) I'm not sure why this happens just yet, but hopefully this information is useful.
Hi,
yes, there's s bug in 1.5.0, only <code> should be highlighted as PHP code.
bye
Thorsten
yes, there's s bug in 1.5.0, only <code> should be highlighted as PHP code.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi Thorsten,
In version 1.5.0, when I modify line 103 in artikel.php from the following:
back to this:
as it was in previous versions of phpMyFAQ, this seems to fix the issue with PHP tags showing up arbitrarily within preformatted text blocks. Somehow, PHP tags seem to be getting trapped within the preformatted text tags and getting displayed rather than being parsed.
Hope this helps!
In version 1.5.0, when I modify line 103 in artikel.php from the following:
Code: Select all
"writeContent" => preg_replace_callback("/<pre([^>]*)>(.*?)<\/pre>/is", 'hilight', $content),
Code: Select all
"writeContent" => $content,
Hope this helps!
Hi,
it should be better:
bye
Thorsten
it should be better:
Code: Select all
"writeContent" => preg_replace_callback("/<code([^>]*)>(.*?)<\/code>/is", 'hilight', $content),
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
it's fixed in CVS and the fix will be released in 1.5.1.
bye
Thorsten
it's fixed in CVS and the fix will be released in 1.5.1.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist