Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
zh-cn:wiki:syntax [2012/04/16 18:55] – [No Formatting] haobug | zh-cn:wiki:syntax [2012/04/16 19:18] – [可下载的代码块] haobug | ||
---|---|---|---|
Line 311: | Line 311: | ||
< | < | ||
- | 这是一些包含像这样的地址文字:http:// | + | 这是一些包含像这样的地址文字:http:// |
</ | </ | ||
Line 317: | Line 317: | ||
< | < | ||
- | 这是一些包含像这样的地址文字:http:// | + | 这是一些包含像这样的地址文字:http:// |
</ | </ | ||
对于带有表情符号的 %%; | 对于带有表情符号的 %%; | ||
- | ===== Code Blocks | + | ===== 代码块 |
- | You can include code blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags '' | + | 您可以将代码块包含到文档中,可以通过缩进两个空格(像前面例子中所用的那样) 或者使用标 |
- | | + | |
< | < | ||
- | This is preformatted code all spaces are preserved: like <-this | + | 这是预格式化的代码,所有空格都被保留:像 |
</ | </ | ||
< | < | ||
- | This is pretty much the same, but you could use it to show that you quoted a file. | + | 这非常相似,但您可以用它来表明您引用了一个文件。 |
</ | </ | ||
- | Those blocks were created by this source: | + | 这些区块由下面的源码创建: |
- | | + | |
< | < | ||
- | | + | |
</ | </ | ||
< | < | ||
- | | + | |
</ | </ | ||
- | ==== Syntax Highlighting | + | ==== 语法高亮 |
- | [[wiki: | + | [[wiki: |
<code java> | <code java> | ||
/** | /** | ||
- | | + | * HelloWorldApp |
- | * simply displays | + | |
*/ | */ | ||
class HelloWorldApp { | class HelloWorldApp { | ||
public static void main(String[] args) { | public static void main(String[] args) { | ||
- | System.out.println(" | + | System.out.println(" |
} | } | ||
} | } | ||
</ | </ | ||
- | The following language strings are currently recognized: | + | 下列字符串为当前可以识别语言://4cs, abap, actionscript-french, |
- | ==== Downloadable Code Blocks | + | ==== 可下载的代码块 |
- | When you use the '' | + | 当你使用上面的'' |
< | < | ||
Line 380: | Line 379: | ||
</ | </ | ||
- | If you don't want any highlighting but want a downloadable file, specify a dash ('' | + | 如果您不想要任何高亮,但想要一个可下载的文件,指定破折号('' |
- | + | ||
===== Embedding HTML and PHP ===== | ===== Embedding HTML and PHP ===== | ||