ChinesePython Wiki   MoinMoin Wiki格式说明 用户设定
 
站内导航 Diffs Info Edit RAW Print
 ChinesePython Wiki   中蟒大杂院   最近修改   标题目录   看发表区   搜寻/发表   站内导航   求助 

1 文本格式设置规则

段落之间用空行分割。用 [[BR]] 在段落中折行。

您可以将文字显示为 斜体粗体. 要写斜体字,把文字首尾各用两个单引号括起来。(注意用英文符号,而不是全角标点符号,下同) 要写粗体,用三个单引号把文字括起来。 用上尖括号您可以得到注头文字

用三个大括号可以插入程序代码而不是将其格式设为单字节宽度字体:

10 PRINT "Hello, world!" 
20 GOTO 10 

Note that within code sections, both inline and display ones, any wiki markup is ignored. An alternative and shorter syntax for inlined code is to use backtick characters (note that this can be disabled by the site's configuration, but is enabled by default).

For more information on the possible markup, see HelpOnEditing.

1.1 例子

Mixing ''italics'' and '''bold''': 
 * '''''Mix''' at the beginning'' 
 * '''''Mix'' at the beginning''' 
 * '''Mix at the ''end''''' 
 * ''Mix at the '''end''''' 
 
You might recall ''a''^2^ `+` ''b''^2^ `=` ''c''^2^ from your math lessons. 
 
An { { {inline code sequence} } } has the start and end markers on the same line. Or you use `backticks`. 
 
A code display has them on different lines: { { { 
'''No''' markup here! 
} } } 
/!\ In the above example, we "escaped" the markers for source code sequences by inserting spaces between the curly braces.

1.2 显示为

Mixing italics and bold:

You might recall a2 + b2 = c2 from your math lessons.

An inline code sequence has the start and end markers on the same line. Or you use backticks.

A code display has them on different lines:

'''No''' markup here! 

1.3 为程序代码上色

There are several ways to get colorized formatting of Python code1:
  1. start a code display with a line only containing "#!python"
  2. embed a file attachment bearing a ".py" extension via "inline:"
  3. start a page with a Python format processing instruction ("#format python")

Example:

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

____
   1 There is currently no support for languages other than Python.
PythonPowered
搜寻页面 或尝试以下动作: 附加档案, 删除页面, 本页连结图