匿名
尚未登入
登入
DILA Wiki
搜尋
檢視 Code syntax testing 的原始碼
出自DILA Wiki
命名空間
頁面
討論
更多
更多
頁面操作
閱讀
檢視原始碼
歷史
←
Code syntax testing
由於下列原因,您沒有權限進行編輯此頁面的動作:
您請求的操作只有這個群組的使用者能使用:
使用者
您可以檢視並複製此頁面的原始碼。
I've written a Syntax Highlighter plugin for our Wiki. There are some example of how to use it below. The hard work is done by the [http://qbnz.com/highlighter/ GeSHi] syntax highlighting engine - I've simply created a wrapper-plugin. I haven't implemented all of GeSHi's functionality - if there's a feature you'd like to use, let me know and I'll add it. Things I could add easily if it would help include highlighing certain lines for emphasis, and specifying the line-number to begin at. For now, note that 'n' will give line-numbers. See below for more details. 謝謝! Simon [edit:] see also [http://blogs.ddbc.edu.tw/blog/2008/09/08/syntax-highlighting/ here] - this uses a different system, but I'm not sure which is better... -------------- - simple-style code tag (e.g. <php> echo "Hello World"; </php>) <php> echo "Hello World"; </php> - advanced-style code tag (e.g. <code php> echo "Hello World"; </code>) <syntaxhighlight lang="PHP"> echo "Hello World"; </syntaxhighlight> - advanced-style code tag with line numbers (<code php n> echo "Hello World"; </code>) <syntaxhighlight lang="PHP" line> echo "Hello World"; </syntaxhighlight> - default code tag (e.g. <code> echo "Hello World"; </code>) <syntaxhighlight lang="XML"> echo "Hello World"; </syntaxhighlight> - the list of supported languages (available by calling: <code list></code> note: if you use an invalid keyword or invalid syntax, the plugin will return this list) <syntaxhighlight></syntaxhighlight>
返回到「
Code syntax testing
」。
導覽
導覽
首頁
近期變更
隨機頁面
MediaWiki說明
wiki工具
wiki工具
特殊頁面
頁面工具
頁面工具
使用者頁面工具
更多
連結至此的頁面
相關變更
頁面資訊
頁面日誌