File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616echo '<h3 id="syntax">Syntax</h3> ' ;
1717echo 'Nothing to fiddle with in this paragraph... ' ;
1818echo '<textarea id="Ch1p1ex1">
19- <?php
20- $a = array( \'a \' => 1, \'b \' => 2, 3 => \'c \');
21-
22- echo "$a[a] ${a[3] /* } comment */} {$a[b]} \$a[a]";
23-
24- function hello($who) {
25- return "Hello $who!";
26- }
27- ?>
28- <p>The program says <?= hello("World") ?>.</p>
29- <script>
30- alert("And here is some JS code"); // also colored
31- </script>
19+ showcode(<<< \'CODE \'
20+ $a = 10 + 010; echo $a . "\n";
21+ $a = 0.10 + 0x10; echo $a . "\n";
22+ $a = 10 + 0b10; echo $a . "\n";
23+ $a = 2E3 + 0b10; echo $a . "\n";
24+ $a = 1.2E2 + 0b10; echo $a . "\n";
25+ $a = 10 + 0b10; echo $a . "\n";
26+
27+ CODE
28+ );
3229</textarea>einde textarea</br> ' ;
3330
3431
Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ $(document).ready (function() {
1212
1313 mytextarea = document . getElementById ( 'Ch1p1ex1' ) ;
1414 var myCodeMirror1 = CodeMirror . fromTextArea ( mytextarea , {
15- lineNumbers : true ,
16- ru
15+ lineNumbers : true
1716 } ) ;
1817 //var myCodeMirror2 = CodeMirror(document.body, {
1918 // value: "function myScript2(){return 100;}\n",
You can’t perform that action at this time.
0 commit comments