#47242 [NEW]: No newlines when c'n'p-ing examples from IE/CHM with the new Geshi highlighter.
| From: | RQuadling at GMail dot com | Date: | Thu, 29 Jan 2009 18:14:31 +0000 |
| Subject: | #47242 [NEW]: No newlines when c'n'p-ing examples from IE/CHM with the new Geshi highlighter. | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-1773@lists.php.net to get a copy of this message | ||
From: RQuadling at GMail dot com
Operating system: Windows XP SP3
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: No newlines when c'n'p-ing examples from IE/CHM with the new Geshi
highlighter.
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>
--
Edit bug report at http://bugs.php.net/?id=47242&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47242&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47242&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47242&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47242&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47242&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47242&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47242&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47242&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47242&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47242&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47242&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47242&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47242&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47242&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47242&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47242&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47242&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47242&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47242&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47242&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47242&r=mysqlcfg