[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] HTML editor woes on pygame.org/wiki



Currently on my web2py blog, I am using python-markdown2 with the codecolor extra, and WMD for the editor. I couldn't be more happy honestly. It beats the socks off WYSIWYG editors, and with the extras, syntax highlighting and other options are available making it that much better. And since WMD is so simple, its easy to manipulate the contents with custom scripts (such as image uploading).

Is there a reason you choose to not go the markdown route?

http://code.google.com/p/python-markdown2/
http://wmd-editor.com/

-Thadeus




On Sat, Dec 19, 2009 at 10:03 AM, B W <stabbingfinger@xxxxxxxxx> wrote:
> However code can still be messed up by the rich text editor.  You can fix it
> by using pre and code tags.
> <pre><code></code></pre>
>
> Then the rich text editor does not mess up the code formatting.
>
> I've also updated http://www.pygame.org/wiki/syntax and the CookBook page to
> mention using pre tags along with the code tags.

The workaround succeeds. Thanks!

> It is using tinymce, if anyone knows of a fix or a config item to tell it to
> replace <code></code> (without pre tags) with <pre><code></code></pre> ?  Or
> some other fix?  I imagine it could work with a tinymce plugin that treats
> <code> tags just like <pre> tags.  I tried quickly looking at writing a
> plugin, but gave up after 20 minutes.

If you can choose the editor, you might like to have better luck
fckeditor, at least until the tinymce developer gets that fixed.
fckeditor is another j*script WYSIWYG.

Anyways, SpriteStripAnim class posted. Thanks, René. :)

Gumm