[Moin-user] color text

Juergen Hermann jh at web.de
Mon Oct 10 10:03:48 EDT 2005


On Mon, 10 Oct 2005 09:06:38 +0900, Hyungyong Kim wrote:

        color, text = args.split(':', 1)

else you get probs when text contains a :


>I'm using the macro for color text.

>[[Color(blue:Hello World!)]] or [[Color(#8844aa:Hello World!)]]

>My macro is as follow:

>yong27 at bhn:/home/moin/bhn/plugin/macro$ cat Color.py
>def execute(macro, args):
>    try:
>        color, text = args.split(':')
>    except:
>        return args
>    return """<font color="%s">%s</font>"""%(color,text)

>I wish it helps you.


>2005/10/10, hpvpl <va.planat at gmail.com>:
>> I've search for a way to color the text of my Desktop moinmoin wiki. Have
>> for example bold text in red, or italic in blue etc ..
>>
>>  All the references I get are related to tables. But nowhere something to
>> color just part of a text in a paragraph. Is it supported ?
>>
>>  Thanks again
>>


>--
>Hyungyong Kim,
>http://biohackers.net


>-------------------------------------------------------
>This SF.Net email is sponsored by:
>Power Architecture Resource Center: Free content, downloads, discussions,
>and more. http://solutions.newsforge.com/ibmarch.tmpl
>_______________________________________________
>Moin-user mailing list
>Moin-user at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/moin-user


Ciao, Jürgen






More information about the Moin-user mailing list