Philip,
On Apr 30, 2007, at 7:47 PM, Philip Plante wrote:
The reason I do this is because previously Textmate would turn off syntax highlighting for anything between {literal} and {/literal}. So I found that if you wrapped it in comments then it canceled out. But now that this new update has come out it has changed that behavior again.
Here is an example of my code:
<!--{literal}-->
<script language="javascript"> function foo() { return "bar"; } </script>
<!--{/literal}-->
Use this instead (notice the spaces in the commenets) and you will get the same behavior.
<!-- {literal} --> <script language="javascript"> function foo() { return "bar"; } </script> <!-- {/literal} -->
I rarely put script/style elements in my pages (except to reference external documents), so I had never noticed this before. Thanks for helping me see this.