Running moin 1.9.1 release version now. If you encounter issues, please check if we have a bug reports for them.

Color2

Description

Extends Color macro to support text color, background color, and font. Also uses code from MiniPage to support markup within text. e.g. Color2(red,blue,courier,red courier on blue)

Download & Release Notes

Download

Release Version

Moin Version

Release Notes

Color2-1.6.py

1.6

1.7

Note: install as Color2.py; It worked on my 1.7.1 Desktop MoinMoin

Color2-1.6.py

1.6

1.6

Note: install as Color2.py

Color2.py

1.5

Usage

Example

"Tested" in MoinMoin 1.7.1

"Tested" in MoinMoin 1.8.2 (2009.03.12)

Syntax for colorizing text in MoinMoin 1.7.1:

In normal text

<<Color2(color,bgcolor,font,text)>>
<<Color2(color,bgcolor,text)>>
<<Color2(color,text)>>

Example, in normal text:

<<Color2(red,blue,courier,red courier on blue)>>

<<Color2(green,yellow,Green Font on Yellow Background)>>

<<Color2(orange,Orange Text)>>

Result (somehow, courier does not work? example from "Description" above):

Example Normal Text

Also works within tables:

||<<Color2(red,blue,courier,red courier on blue)>><<BR>><<Color2(green,yellow,Green Font on Yellow Background)>><<BR>><<Color2(orange,Orange Text)>>||

||<style="background-color: #CCFFFF;"> <!> '''Notice!'''<<BR>>The allocation of IP addresses for the abc interfaces on the host start with 10.10.<<Color2(red,1)>>.<<Color2(red,1)>> --> (abc server .<<Color2(red,rack 1, rack position 1)>>). ||

Example Tables

ClifKussmaul, DaveHein

License

Bugs

This macro should be refactored

  1. use of arg parser for macros
  2. use of wikiutil.renderText()
  3. /!\ user input needs to be escaped XSS problems

Discussion

MoinMoin: MacroMarket/Color2 (last edited 2009-08-08 09:46:35 by ReimarBauer)