[TxMt] HTML Bundle in Version 1.5.5 (1383)
Philip Plante
mail at pplante.com
Mon Apr 30 23:47:59 UTC 2007
Roger,
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.
Make sense?
---
Philip Plante
913-302-9933
phil.plante at transmuto.com
On Apr 30, 2007, at 6:36 PM, Roger Roelofs wrote:
> Phillip,
>
> On Apr 30, 2007, at 6:58 PM, Philip Plante wrote:
>
>> I am using PHP with Smarty as my template engine, and previously I
>> would include <!--{literal}--> in my code to escape Smarty parsing
>> on script blocks. Now when I do this the entire block of code
>> becomes commented out. While this is not a crucial bug it is a
>> new annoyance for me as it is very useful to have syntax
>> highlighting on script blocks.
>>
>> Here is an example of my code:
>>
>> <!--{literal}-->
>> <script language="javascript">
>> function foo() {
>> return "bar";
>> }
>> </script>
>> <!--{/literal}-->
>
> Why do you wish to enclose the smarty {literal} in a html comment
> (which should be <!-- {literal} --> anyway) ? Smarty will remove
> the {literal} before the browser sees it.
>
> --
> Roger Roelofs
>
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070430/73ddbc11/attachment.html>
More information about the textmate
mailing list