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