Differences between revisions 2 and 5 (spanning 3 versions)
Revision 2 as of 2005-10-10 08:57:47
Size: 11914
Editor: 211
Comment:
Revision 5 as of 2005-10-11 09:01:07
Size: 11978
Editor: 211
Comment:
Deletions are marked like this. Additions are marked like this.
Line 154: Line 154:
yong27@bhn:/home/moin/bhn/plugin/macro$ cat Color.py """macro/Color.py"""
Line 157: Line 157:
        color, text = args.split(':')         color, text = args.split(':',1)
Line 161: Line 161:
}}}
Line 162: Line 163:
yong27@bhn:/home/moin/bhn/plugin/macro$
}}}
[http://sourceforge.net/mailarchive/forum.php?thread_id=8498022&forum_id=623 관련 메일리스트]에서 Hermann씨가 조언을...

글자에 색깔넣기 매크로

해당 문장에 색을 넣고자 할때 사용한다.

사용법

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

이렇게 하면 그 글자의 색이 바뀌게 된다. ':'을 중심으로 바꾸고자 하는 색, 문장을 기록한다.

색상표

매크로 코드

   1 """macro/Color.py"""
   2 def execute(macro, args):
   3     try:
   4         color, text = args.split(':',1)
   5     except:
   6         return args
   7     return """<font color="%s">%s</font>"""%(color,text)

[http://sourceforge.net/mailarchive/forum.php?thread_id=8498022&forum_id=623 관련 메일리스트]에서 Hermann씨가 조언을...


CategoryMacro

ColorMacro (last edited 2011-08-03 11:00:41 by localhost)

web biohackers.net