Has anyone found a way to successfully place code inside of the Editor and
retain formatting?
I am looking at using the full editor in a blog application - I am a developer
and often post a
lot of code examples and use CodeRay for syntax higlighting. The problem I am
having with
the yui editor is that it replaces all the new lines of the pasted in code and
when the blog
post is created I lose all formatting and CodeRay is unable to do the syntax
highlighting
properly...
Any ideas on how to get around this? Maybe some way to wrap the code in a tag
that the
html parser would ignore?
Btw what determines how and when pasted text is formatted as html?
Thanks,
Bob