[solved] Using both Literal and Code tags at the same time...
Posted: Fri Apr 11, 2008 6:52 pm
This is actually in reference to an old post located at http://forum.cmsmadesimple.org/index.ph ... 044.0.html
I know this is an old topic, but my question is directly related to it. If someone were to want to do both of the following:
1. Display html code without rendering it
and
2. Display that with a certain style (look and feel)
One would probably leap to the assumption that one should combine both the tags and the {literal} tags, wouldn't one? like this:
{literal}{/literal}
Unfortunately, my tests seem to show that this won't work. If I wrap the tags around the {literal} tags, then the literal tags seem to no longer function. In other words, my html code displays with the correct style (based on the code tags I used), but they are not ignored, and therefore the code is rendered, rather than displayed.
Am I making sense?
How does one both display html code without rendering it (as using the literal tags would do) AND display it with a special style (such as the code tags would do)? It appears as though only one or the other can happen, but not both.
Am I just missing something? Or is it just not possible?
I know this is an old topic, but my question is directly related to it. If someone were to want to do both of the following:
1. Display html code without rendering it
and
2. Display that with a certain style (look and feel)
One would probably leap to the assumption that one should combine both the tags and the {literal} tags, wouldn't one? like this:
{literal}{/literal}
Unfortunately, my tests seem to show that this won't work. If I wrap the tags around the {literal} tags, then the literal tags seem to no longer function. In other words, my html code displays with the correct style (based on the code tags I used), but they are not ignored, and therefore the code is rendered, rather than displayed.
Am I making sense?
How does one both display html code without rendering it (as using the literal tags would do) AND display it with a special style (such as the code tags would do)? It appears as though only one or the other can happen, but not both.
Am I just missing something? Or is it just not possible?