编写提示
允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
本站允许 HTML 标签,虽然学习 HTML 可能比较困难,但学习如何使用一小部分基础的 HTML“标签”是很容易的。这个表格提供了本站可用的 HTML 标签的例子。
更多信息,请参见 W3C 组织的 HTML 或使用您喜欢的搜索引擎搜索其他解释 HTML 的站点。
| 标签说明 | 您输入 | 您得到 |
| 锚点(anchor)用来生成链接到其他页面的链接。 | <a href="http://www.dup2.org">BT的花</a> | BT的花 |
| 强调 | <em>强调</em> | 强调 |
| 强调 | <strong>强调</strong> | 强调 |
| 引用 | <cite>引用</cite> | 引用 |
| 编码化文本,用于显示程序源代码 | <code>编码化</code> | 编码化 |
| 无序列表 - 使用 <li> 开始每个项目 | <ul> <li>第一项</li> <li>第二项</li> </ul> | |
| 顺序列表- 使用 <li> 来开始每个项目 | <ol> <li>第一项</li> <li>第二项</li> </ol> | - 第一项
- 第二项
|
| 定义列表类似于其他 HTML列表。<dl> 开始定义列表,<dt> 开始定义列表项,<dd> 则开始列表描述。 | <dl> <dt>第一个术语</dt> <dd>第一个定义</dd> <dt>第二个术语</dt> <dd>第二个定义</dd> </dl> | - 第一个术语
- 第一个定义
- 第二个术语
- 第二个定义
|
许多特殊字符可以轻松的直接输入。
如果您碰到问题,尝试使用 HTML 字符实体。一个通常的例子,类似于 & 代表一个与符号(&)。全部的列表参见 HTML 实体。某些可用字符包括:
| 字符说明 | 您输入 | 您得到 |
| 与标记(&) | & | & |
| 大于号 | > | > |
| 小于号 | < | < |
| 双引号 | " | " |
Syntax highlighting of source code can be enabled with the following tags: - Generic syntax highlighting tags: "
<code>", "<blockcode>".
- Language specific syntax highlighting tags: .
Options and tips: - The language for the generic syntax highlighting tags can be specified with one of the attribute(s): type, lang, language. The possible values are: "
c" (for C), "javascript" (for Javascript), "python" (for Python).
- Line numbering can be enabled/disabled with the attribute "linenumbers". Possible values are: "off" for no line numbers, "normal" for normal line numbers and "fancy" for fancy line numbers (every nth line number highlighted). The start line number can be specified with the attribute "start", which implicitly enables normal line numbering. For fancy line numbering the interval for the highlighted line numbers can be specified with the attribute "fancy", which implicitly enables fancy line numbering.
- If the source code between the tags contains a newline (e.g. immediatly after the opening tag), the highlighted source code will be displayed as a code block. Otherwise it will be displayed inline.
- Beside the tag style "
<foo>" it is also possible to use "[foo]".
Defaults: - Default highlighting mode for generic syntax highlighting tags: the default language used for syntax highlighting is "c".
- Default line numbering: no line numbers.
Examples:
| You type | You get |
<code>foo = "bar";</code> | Inline code with the default syntax highlighting mode. |
<code> foo = "bar"; baz = "foz"; </code> | Code block with the default syntax highlighting mode. |
<code lang="python" linenumbers="normal"> foo = "bar"; baz = "foz"; </code> | Code block with syntax highlighting for Python source code and normal line numbers. |
<code language="python" start="23" fancy="7"> foo = "bar"; baz = "foz"; </code> | Code block with syntax highlighting for Python source code, line numbers starting from 23 and highlighted line numbers every 7th line. |
- 行和段被自动识别。<br /> 分行、<p> 段落开始以及 </p> 段落结束标记会被自动插入。如果段落没有被识别出来,只要加入一对空行。
|
最新评论
1 天 19 小时之前
1 天 23 小时之前
1 周 19 小时之前
1 周 6 天之前
2 周 1 天之前
2 周 1 天之前
2 周 1 天之前
2 周 1 天之前
2 周 6 天之前
3 周 1 天之前