Page 1 of 1

Smarty tags goes bananas over "{" in Posted Program code

Posted: Mon Oct 01, 2012 4:47 pm
by Enddoc
What's the trick?

I used notepad to cut and paste my 'Arduino Sketch' program code into the content page such as, http://ecoxsaver.com/index.php?page=tw5 ... ter-sketch.

You notice on this tester software the opening brace is a '(' not the proper '{' as a way to stop the smarty tag error.

So what's the trick because I now have to post a huge sketch for the main controller for the guys with lots of '{'s.

I bet someone has a good fix as this can't the first time for a program to be posted as simple text. ::)

Can you help me?

I am running CMS Version 1.11.1 on 1&1.com.
modules:
CMSMailer 5.2.1
CMSPrinting 1.0.3
FileManager 1.4.0
MenuManager 1.8.3
MicroTiny 1.2.3
ModuleManager 1.5.5
News 2.12.8
Search 1.7.7
ThemeManager 1.1.7
CGSimpleSmarty 1.5.2
CGExtensions 1.30
CGFeedback 1.5.7
TinyMCE 2.9.11

Thanks in Advance.

Re: Smarty tags goes bananas over "{" in Posted Program code

Posted: Mon Oct 01, 2012 5:08 pm
by uniqu3
How about?

<code>
{literal}
the code
{/literal}
</code>

Re: Smarty tags goes bananas over "{" in Posted Program code

Posted: Mon Oct 01, 2012 6:05 pm
by Enddoc
Hey that worked quite well but I left off <code></code> because it showed in the text. In spite of it, the {literal} tags work.
Thanks a bunch, uniqu3!!!
End of story - I love CMSMS because of it has THE people's back. O0