blob: 8e0419c2b627341444a61279ee597296b1401fdd (
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
|
From EmacsWiki:
I have chunk problems with 1.99. This works, it detects the PHP and JS chunks properly:
<?
$stuff = <<<EOTHTML
<script type="text/javascript">
//<![CDATA[
var stuff;
//]]>
</script>
EOTHTML;
However if I don’t close the inner chunk before EOTHTML, because I want to add some conditional code after it in PHP then it thinks the part of the buffer after EOTHTML is still in JS mode which is not good:
<?
$stuff = <<<EOTHTML
<script type="text/javascript">
//<![CDATA[
var stuff;
EOTHTML;
|