[TxMt] HTML Bundle in Version 1.5.5 (1383)
Roger Roelofs
roger.roelofs at gmail.com
Tue May 1 00:17:46 UTC 2007
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.
--
Roger Roelofs
More information about the textmate
mailing list