# -*- coding: utf-8 -*- """ This macro allows you to add color. Author: David Roussel Usage: {{{ [[Color( background-color, color , text )]] }}} or {{{ [[Color( color , text )]] }}} Where: color:: is a color keyword or hex color number recognised by your browser text:: any text or html you like Example: {{{ [[Color(red,This has a red background)]] [[Color(blue, green,This has a blue background and green text)]] }}} """ def execute(hdf, args, env): args = tuple(args.split(",")) if len(args) == 2 : return '%s' % args else: return '%s' % (args[0], args[1], ','.join(args[2:]))