Wiki Page Content

一般法則

  • 用一個以上的空白行來分開不同段落
  • <<BR>> 可在段落中強迫斷行

字體

字體變化

語法標記

說明

italic

''italic''

斜體字

bold

'''bold'''

粗體字

monospace

`monospace`

打字機字體。Wiki 語法標記無效

code

{{{code}}}

用在程式範例。Wiki 語法標記無效

underline

__underline__

加底線

superscript

^superscript^

上標字

subscript

,,subscript,,

下標字

smaller

~-smaller-~

縮小字體

larger

~+larger+~

放大字體

stroke

--(stroke)--

刪除線

程式語法加強顯示

程式語法加強顯示是針對不同的程式語言做特別的處理。程式語言的保留字、常數等經過解析器的處理,會以不同的顏色顯示,以方便閱讀。啟用解析器的方法有下列幾種:

  1. 在以 {{{}}} 包起來的區塊中,指定解析器種類。如:{{{#!parsername

  2. 使用 inline: 嵌入有支援副檔名的附件。如:附件副檔名是 ".py"

  3. 用 #format 指示定義頁面內容的格式。如:#format parsername

關於目前支援的解析器,請參考 HelpOnParsers


範例

混合 ''斜體字'' 與 '''粗體字'''

語法標記

呈現結果

'''''Mix''' at the beginning''

Mix at the beginning

'''''Mix'' at the beginning'''

Mix at the beginning

'''Mix at the ''end'''''

Mix at the end

''Mix at the '''end'''''

Mix at the end

程式顯示

{{{
10 PRINT "Hello, world!"
20 GOTO 10
}}}

結果:

10 PRINT "Hello, world!"
20 GOTO 10

上標字與下標字

You might recall ''a''^2^ + ''b''^2^ = ''c''^2^ from your math lessons, unless your head is filled with H,,2,,O.

結果:

You might recall a2 + b2 = c2 from your math lessons, unless your head is filled with H2O.

程式語法加強顯示

{{{#!python
from colors import palette
palette.colorize('python')
}}}

結果:

   1 from colors import palette
   2 palette.colorize('python')