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

On Apr 30, 2007, at 6:36 PM, Roger Roelofs wrote:


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:

<script language="javascript">
function foo() {
return "bar";

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:
(threading gets destroyed and the universe will collapse if you don't)