1、阴影荧光笔
<<hls "文本" 颜色代码>>
例:
!! <<hls "Drop shadow highlight" red>>
This is <<hls "highlighted green" green>>.
2、钢笔荧光笔(涂一半)
<<hlp "文本" 颜色代码>>
例:
!! <<hlp "Pen highlight" pink>>
This is <<hlp "highlighted green" lime>>.
3、普通荧光笔
<<hl "文本" 颜色代码>>
例:
!! <<hl "Simple highlight" aqua>>
This is <<hl "highlighted green" Khaki>>.
4、修改文字颜色
<<tc "文本" 颜色代码>>
例:
!! <<tc "Simple text color" red>>
This is <<tc "Simple text color" blue>>.
5、同时修改文字颜色和背景颜色
<<thl "文本" 字体颜色代码 背景颜色代码>>
<<thlp "文本" 字体颜色代码 背景颜色代码>>
例:
<<thl "这是一句话。" #1A4975 #B1D3E9>>
<<thlp "这是一句话。" #1A4975 #B1D3E9>>
需要在$:/plugins/kookma/shiraz/macros/text-utility
加上代码
<!-- text highlight -->
\define thl(src:"", color1:"red", color2:"yellow") <mark class="kk-sh-highlight" style="color:$color1$;background-color:$color2$">$src$</mark>
<!-- text highlight pen-->
\define thlp(src:"", color1:"red", color2:"yellow") <mark class="kk-sh-highlight-pen" style="color:$color1$; background-image: linear-gradient(to top, $color2$ 50%, transparent 0);">$src$</mark>
<$macrocall $name="wikitext-example"