librelist archives

« back to archive

How do I add code markers to snippets

How do I add code markers to snippets

From:
Thiago Padilha
Date:
2011-12-31 @ 02:00
Hi

I have posted a comment to http://flask.pocoo.org/snippets/20/ but
forgot(and dont know how) to add code markers. How can I add code
markers when posting a comment?

Thiago.

Re: [flask] How do I add code markers to snippets

From:
Simon Sapin
Date:
2011-12-31 @ 03:50
Le 31/12/2011 03:00, Thiago Padilha a écrit :
> Hi
>
> I have posted a comment to http://flask.pocoo.org/snippets/20/ but
> forgot(and dont know how) to add code markers. How can I add code
> markers when posting a comment?
>
> Thiago.

Hi,

It looks like snippets comments are rendered with Creole:

https://github.com/mitsuhiko/flask/blob/website/flask_website/database.py#L153

It is actually explained when you add a snippet, but not when you add a 
comment:

http://flask.pocoo.org/snippets/new/

Regards,
-- 
Simon Sapin

Re: [flask] How do I add code markers to snippets

From:
Thiago Padilha
Date:
2011-12-31 @ 04:33
Ok it seems I messed up again. Can someone please delete my comments?

On Sat, Dec 31, 2011 at 12:50 AM, Simon Sapin <simon.sapin@exyr.org> wrote:
> Le 31/12/2011 03:00, Thiago Padilha a écrit :
>> Hi
>>
>> I have posted a comment to http://flask.pocoo.org/snippets/20/ but
>> forgot(and dont know how) to add code markers. How can I add code
>> markers when posting a comment?
>>
>> Thiago.
>
> Hi,
>
> It looks like snippets comments are rendered with Creole:
>
> https://github.com/mitsuhiko/flask/blob/website/flask_website/database.py#L153
>
> It is actually explained when you add a snippet, but not when you add a
> comment:
>
> http://flask.pocoo.org/snippets/new/
>
> Regards,
> --
> Simon Sapin