initial commit
[emacs-init.git] / nxhtml / tests / in / heredoc.php
1
2 <?php
3
4 /* Testing fill paragraph and friends, fill me fill me fill me fill me
5    fill me fill me fill me fill me fill me fill me fill me fill me
6    fill me fill me
7
8    However coloring it differently than the top level (or level 1) php
9    chunks may help detect nesting errors.  */
10
11 $name       = "Joe Smith";
12 $occupation = "Programmer";
13 echo <<<EOF
14
15  This is a heredoc text-mode section.
16  For more information talk to $name, your local $occupation.
17
18 EOF;
19
20 $toprint = <<< HTMLEOF
21 <!-- heredoc html-mode section -->
22 <style type="text/css">
23 .bugfix { color: red; }
24 </style>
25
26 <script type="text/javascript" language="javascript">
27
28  function onEndCrop( coords, dimensions ) {
29      alert("Test");
30  }
31 </script>
32
33
34 <a href="javascript:void window.open('');" title="Something">
35   <img   src="/administrator/images/imprimir.png"
36   style="color:red;"
37   border="0"
38   alt="<?php echo _CMN_PDF;?>"
39   onmouseover="this.src='images/imprimir_on.png';swap('imprimir',1);"
40   onmouseout="this.src='images/imprimir.png'; swap('imprimir',0);"
41   class="bot" id="imprimir"/>
42   </a>
43
44 <?php
45
46 /* This inner php chunk is not very useful (except for presentation of
47    MuMaMo chunk dividing capabilities and deficiences...), since php
48    normally seems to run only one pass...
49
50    However coloring it differently than the top level (or level 1) php
51    chunks may help detect nesting errors.  */
52
53 echo <<<ONEMORELEVEL
54 Just for testing the chunk background color...
55 ONEMORELEVEL;
56 ?>
57
58 HTMLEOF;
59 echo strtolower($toprint);
60
61 ?>