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.