## Please edit system and help pages ONLY in the master wiki!
## For more information, please see MoinMoin:MoinDev/Translation.
##master-page:HelpOnFormatting
##master-date:2005-01-06 14:55:00
#acl -All:write Default
#format wiki
#language zh-tw
== 一般法則 ==
* 用一個以上的空白行來分開不同段落
* 用 `<
>` 可在段落中強迫斷行
== 字體 ==
## Note that in some places we've used backticks here to "escape" the Wiki markup.
|| '''字體變化''' || '''語法標記''' || '''說明''' ||
|| ''italic'' || `''italic''` || 斜體字 ||
|| '''bold''' || `'''bold'''` || 粗體字 ||
|| `monospace` || {{{`monospace`}}} || 打字機字體。Wiki 語法標記無效 ||
|| {{{code}}} || `{{{code}}}` || 用在程式範例。Wiki 語法標記無效 ||
|| __underline__ || `__underline__` || 加底線 ||
|| ^super^script || `^superscript^` || 上標字 ||
|| ,,sub,,script || `,,subscript,,` || 下標字 ||
|| ~-smaller-~ || `~-smaller-~` || 縮小字體 ||
|| ~+larger+~ || `~+larger+~` || 放大字體 ||
|| --(stroke)-- || `--(stroke)--` || 刪除線 ||
== 程式語法加強顯示 ==
程式語法加強顯示是針對不同的程式語言做特別的處理。程式語言的保留字、常數等經過解析器的處理,會以不同的顏色顯示,以方便閱讀。啟用解析器的方法有下列幾種:
1. 在以 `{{{` 和 `}}}` 包起來的區塊中,指定解析器種類。如:`{{{#!parsername`
1. 使用 `inline:` 嵌入有支援副檔名的附件。如:附件副檔名是 `".py"`
1. 用 #format 指示定義頁面內容的格式。如:`#format parsername`
關於目前支援的解析器,請參考 HelpOnParsers。
----
== 範例 ==
=== 混合 ''斜體字'' 與 '''粗體字''' ===
<>
## Note that in some places we've used backticks here to "escape" the Wiki markup.
|| '''語法標記''' || '''呈現結果''' ||
|| `'''''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''''' ||
=== 程式顯示 ===
<>
## Note that we've used backticks here to "escape" the Wiki markup, and line-breaks to split up the paragraph.
`{{{` <
>
`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 ''a''^2^ `+` ''b''^2^ `=` ''c''^2^ from your math lessons, unless your head is filled with H,,2,,O.
<>
=== 程式語法加強顯示 ===
## Note that we've used backticks here to "escape" the Wiki markup, and line-breaks to split up the paragraph.
`{{{#!python` <
>
`from colors import palette` <
>
`palette.colorize('python')` <
>
`}}}` <
>
結果:
{{{#!python
from colors import palette
palette.colorize('python')
}}}