svn: /phd/trunk/phpdotnet/phd/Package/PHP/ EnhancedCHM.php
| From: | Richard Quadling | Date: | Fri, 18 Feb 2011 16:56:56 +0000 |
| Subject: | svn: /phd/trunk/phpdotnet/phd/Package/PHP/ EnhancedCHM.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7783@lists.php.net to get a copy of this message | ||
rquadling Fri, 18 Feb 2011 16:56:56 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=308471
Log:
The new format replaces inline styling on highlighted code in the user notes with class names.
Changed paths:
U phd/trunk/phpdotnet/phd/Package/PHP/EnhancedCHM.php
Modified: phd/trunk/phpdotnet/phd/Package/PHP/EnhancedCHM.php
===================================================================
--- phd/trunk/phpdotnet/phd/Package/PHP/EnhancedCHM.php 2011-02-18 16:33:45 UTC (rev 308470)
+++ phd/trunk/phpdotnet/phd/Package/PHP/EnhancedCHM.php 2011-02-18 16:56:56 UTC (rev 308471)
@@ -78,13 +78,6 @@
$this->haveNotes = true;
v('Usernotes prepared.', VERBOSE_MESSAGES);
- // Use classes rather than colors.
- ini_set('highlight.comment', 'comment');
- ini_set('highlight.default', 'default');
- ini_set('highlight.keyword', 'keyword');
- ini_set('highlight.string', 'string');
- ini_set('highlight.html', 'html');
-
break;
default:
@@ -117,8 +110,12 @@
array(
' ',
'<br />',
- '<font color="', // for PHP 4
- '<span style="color: ', // from PHP 5.0.0RC1
+ // Use classes rather than colors.
+ '<span style="color: ' .
ini_get('highlight.comment'),
+ '<span style="color: ' .
ini_get('highlight.default'),
+ '<span style="color: ' .
ini_get('highlight.keyword'),
+ '<span style="color: ' .
ini_get('highlight.string'),
+ '<span style="color: ' .
ini_get('highlight.html'),
'</font>',
"\n ",
' ',
@@ -127,8 +124,11 @@
array(
' ',
"<br />\n",
- '<span class="',
- '<span class="',
+ '<span class="comment',
+ '<span class="default',
+ '<span class="keyword',
+ '<span class="string',
+ '<span class="html',
'</span>',
"\n ",
' ',