avatar davidm Pro Nov 4. 2008. 6:11 am
It would seem that I can't insert code in discussion with the code or pre html tags in discussions... code is parsed or stripped systematically.

While I understand how it's important for security, I would very much like being able to add code !
Ideas ?

Thanks !
The best way to predict the future is to invent it
------------------------------------------
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)
avatar Leon Pro Nov 4. 2008. 7:35 am
Hey davidm.. might be a silly question but are you using the WYSIWYG editor?
avatar davidm Pro Nov 4. 2008. 8:47 am
You're right, sometimes the simplest question is on target but no I am not using the WYSIWYG editor, otherwise it would be a matter of editing TinyMCE config (allowed html tags)
The best way to predict the future is to invent it
------------------------------------------
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)
avatar Ilija Studen Staff Nov 4. 2008. 9:05 am
When you use visual editor, it will automatically convert code < and > into entities, but when you are using textarea it will not - you'll need to escape them manually.
avatar davidm Pro Nov 4. 2008. 9:47 am
You mean use &gt;code&lt; instead of <code> ?

Edit : Ok that's it... I'll just use TextMate's bundled HTML feature to do convert to entities then
The best way to predict the future is to invent it
------------------------------------------
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)
avatar Ilija Studen Staff Nov 4. 2008. 10:19 am
Yes, that's it. When you use visual editor, it will do the conversion for you...