summaryrefslogtreecommitdiffstats
path: root/emacs.d/nxhtml/tests/in/heredoc.php
blob: 39e82e5177ca945f3b03ada653d1fdb015d82f3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php

/* Testing fill paragraph and friends, fill me fill me fill me fill me
   fill me fill me fill me fill me fill me fill me fill me fill me
   fill me fill me

   However coloring it differently than the top level (or level 1) php
   chunks may help detect nesting errors.  */

$name       = "Joe Smith";
$occupation = "Programmer";
echo <<<EOF

 This is a heredoc text-mode section.
 For more information talk to $name, your local $occupation.

EOF;

$toprint = <<< HTMLEOF
<!-- heredoc html-mode section -->
<style type="text/css">
.bugfix { color: red; }
</style>

<script type="text/javascript" language="javascript">

 function onEndCrop( coords, dimensions ) {
     alert("Test");
 }
</script>


<a href="javascript:void window.open('');" title="Something">
  <img   src="/administrator/images/imprimir.png"
  style="color:red;"
  border="0"
  alt="<?php echo _CMN_PDF;?>"
  onmouseover="this.src='images/imprimir_on.png';swap('imprimir',1);"
  onmouseout="this.src='images/imprimir.png'; swap('imprimir',0);"
  class="bot" id="imprimir"/>
  </a>

<?php

/* This inner php chunk is not very useful (except for presentation of
   MuMaMo chunk dividing capabilities and deficiences...), since php
   normally seems to run only one pass...

   However coloring it differently than the top level (or level 1) php
   chunks may help detect nesting errors.  */

echo <<<ONEMORELEVEL
Just for testing the chunk background color...
ONEMORELEVEL;
?>

HTMLEOF;
echo strtolower($toprint);

?>