Search Google

Thursday, May 08, 2008

測試syntaxhighlighter

語法:pre class="python" name="code"


if msg == HookConstants.WM_SYSKEYDOWN:
func = self.keyboard_funcs.get(HookConstants.WM_SYSKEYDOWN)
else:
func = self.keyboard_funcs.get(msg)

還可以縮起來
語法:pre class="python:collapse" name="code"

if msg == HookConstants.WM_SYSKEYDOWN:
func = self.keyboard_funcs.get(HookConstants.WM_SYSKEYDOWN)
else:
func = self.keyboard_funcs.get(msg)

也可以設定起始行數
語法:pre class="python:collapse:firstline[3]" name="code"

if msg == HookConstants.WM_SYSKEYDOWN:
func = self.keyboard_funcs.get(HookConstants.WM_SYSKEYDOWN)
else:
func = self.keyboard_funcs.get(msg)

No comments: