Skip to content

Commit 27628e5

Browse files
committed
Use css class instead inline style
1 parent 1c41366 commit 27628e5

File tree

4 files changed

+332
-327
lines changed

4 files changed

+332
-327
lines changed

include/layout.inc

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ ini_set('highlight.html', 'html');
1414
// Highlight PHP code
1515
function highlight_php($code, $return = FALSE)
1616
{
17-
$highlighted = highlight_string($code, TRUE);
17+
$highlighted = highlight_string($code, TRUE);
1818

19-
// Use this ugly hack for now to avoid code snippets with bad syntax screwing up the highlighter
19+
// Use this ugly hack for now to avoid code snippets with bad syntax screwing up the highlighter
2020
if(strstr($highlighted, "include/layout.inc</b>")) {
21-
$highlighted = '<span class="html">'. nl2br(htmlentities($code, ENT_HTML5), FALSE) ."</span>";
21+
$highlighted = '<span class="html">'. nl2br(htmlentities($code, ENT_HTML5), FALSE) ."</span>";
2222
}
2323

2424
// Fix output to use CSS classes and wrap well

manual/php3.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</p>
4444

4545
<dl>
46-
<dt><span style="font-size:1.2em">Changed</span></dt>
46+
<dt><span class="big">Changed</span></dt>
4747
<dd>
4848
<p>
4949
FTP configure option changed from <em>--with-ftp</em> to <em>--enable-ftp</em>
@@ -67,7 +67,7 @@
6767
</dl>
6868

6969
<dl>
70-
<dt><span style="font-size:1.2em">Removed</span></dt>
70+
<dt><span class="big">Removed</span></dt>
7171
<dd>
7272
<p>
7373
<em>--with-imsp[=DIR]</em> includes IMSP support (DIR is IMSP's include dir and libimsp.a dir).
@@ -97,7 +97,7 @@
9797
<h2><a name="changed_behaviour" id="changed_bahaviour">Changed Behaviour</a></h2>
9898

9999
<dl>
100-
<dt><span style="font-size:1.2em">Return values</span></dt>
100+
<dt><span class="big">Return values</span></dt>
101101
<dd>
102102
<p>
103103
unset() returns 1.
@@ -118,7 +118,7 @@
118118
</dl>
119119

120120
<dl>
121-
<dt><span style="font-size:1.2em">Function parameters</span></dt>
121+
<dt><span class="big">Function parameters</span></dt>
122122
<dd>
123123
<p>
124124
gettype() has a 'user function' return value.
@@ -142,7 +142,7 @@
142142
</dl>
143143

144144
<dl>
145-
<dt><span style="font-size:1.2em">Other</span></dt>
145+
<dt><span class="big">Other</span></dt>
146146
<dd>
147147
<p>
148148
Variables are always assigned by value, as there are no references.

0 commit comments

Comments
 (0)