|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-20 10:56 UTC] svn@php.net
[2009-11-20 10:57 UTC] vrana@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 09:00:02 2025 UTC |
Description: ------------ Ok, so this is going to be WAY down at the bottom of someone's list, if at all. But, here goes ... Using phd with the new --highlighter option to use GeSHi with the html, php and chm themes. If you cut and paste an example from the rendered output to your editor, it has lost its line breaks. This is only visible when using Internet Explorer or the windows CHM viewer (which is essentially a contained IE). Using Chrome with the html and php output is fine. Using the normal highlighter is also fine in IE/Chrome/CHM with html/php/chm themes. Adding this line ... $geshi->set_header_type(GESHI_HEADER_DIV); to the highlight() function in the new PhD_Highlighter_Geshi.php class solves this. Expected result: ---------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Example</title> </head> <body> <?php echo "Hi, I'm a PHP script!"; ?> </body> </html> Actual result: -------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Example</title> </head> <body> <?php echo "Hi, I'm a PHP script!"; ?> </body></html>