撰写提示

输入格式:
  • RichText:
  • iDEAL:
    • 允许的 HTML 标签: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><img>

      本站允许 HTML 标签,虽然学习 HTML 可能比较困难,但学习如何使用一小部分基础的 HTML“标签”是很容易的。这个表格提供了本站可用的 HTML 标签的例子。

      更多信息,请参见 W3C 组织的 HTML 或使用您喜欢的搜索引擎搜索其他解释 HTML 的站点。

      标签说明您输入将得到
      链接被用来链接到其他页面。<a href="http://www.china-ideal.net">KAWA Photo</a>KAWA Photo
      着重<em>着重</em>着重
      强调<strong>强调</strong>强调
      引用<cite>引用</cite>引用
      编码化文本,用于显示程序源代码<code>编码化</code>编码化
      无序列表 - 使用 <li> 开始每个项目<ul> <li>第一项</li> <li>第二项</li> </ul>
      • 第一项
      • 第二项
      顺序列表 - 使用 <li> 来开始每个项目<ol> <li>第一项</li> <li>第二项</li> </ol>
      1. 第一项
      2. 第二项
      定义列表类似于其他 HTML列表。<dl> 开始定义列表,<dt> 开始定义列表项,<dd> 则开始列表描述。<dl> <dt>第一个术语</dt> <dd>第一个定义</dd> <dt>第二个术语</dt> <dd>第二个定义</dd> </dl>
      第一个术语
      第一个定义
      第二个术语
      第二个定义
      没有标签 img 的帮助。

      许多特殊字符可以轻松的直接输入。

      如果您碰到问题,尝试使用 HTML 字符实体。一个通常的例子,类似于 &amp; 代表一个与符号(&)。全部的列表参见 HTML 实体。某些可用字符包括:

      字符说明您输入将得到
      与标记&amp;&
      大于号&gt;>
      小于号&lt;<
      双引号&quot;"
    • 网页地址和电子邮件地址将会被自动转换为链接。
    • 行和段被自动识别。<br /> 分行、<p> 段落开始以及 </p> 段落结束标记会被自动插入。如果段落没有被识别出来,只要加入一对空行。
    • Syntax highlighting of source code can be enabled with the following tags:

      • Generic syntax highlighting tags: "<code>", "<blockcode>".
      • Language specific syntax highlighting tags: .
      • PHP source code can also be enclosed in <?php ... ?> or <% ... %>, but additional options like line numbering are not possible here.

      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: "actionscript" (for Actionscript), "ada" (for Ada), "apache" (for Apache), "asm" (for assembler), "asp" (for ASP), "bash" (for Bash), "c" (for C), "c_mac" (for C), "caddcl" (for CADDCL), "cadlisp" (for CADLISP), "cpp" (for C++), "csharp" (for CSharp), "css" (for CSS), "d" (for D), "delphi" (for Delphi), "diff" (for Diff), "div" (for DIV), "eiffel" (for Eiffel), "gml" (for GML), "html4strict" (for HTML), "java" (for Java), "javascript" (for JAVASCRIPT), "lisp" (for LISP), "lua" (for LUA), "matlab" (for M), "mpasm" (for Microchip Assembler), "nsis" (for nsis), "objc" (for Objective C), "oobas" (for OpenOffice.org Basic), "oracle8" (for Oracle 8), "pascal" (for Pascal), "perl" (for Perl), "php" (for PHP), "php-brief" (for PHP), "python" (for Python), "qbasic" (for QBasic/QuickBASIC), "smarty" (for Smarty), "sql" (for SQL), "vb" (for Visual Basic), "vbnet" (for vb.net), "vhdl" (for vhdl), "visualfoxpro" (for VFP), "xml" (for XML).
      • 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: when no language attribute is specified, no syntax highlighting will be done.
      • Default line numbering: normal line numbers.

      Examples:

      You typeYou 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="csharp" linenumbers="normal">
      foo = "bar";
      baz = "foz";
      </code>
      Code block with syntax highlighting for CSharp source code
      and normal line numbers.
      <code language="csharp" start="23" fancy="7">
      foo = "bar";
      baz = "foz";
      </code>
      Code block with syntax highlighting for CSharp source code,
      line numbers starting from 23
      and highlighted line numbers every 7th line.
    • Image links from G2 are formatted for use with Lightbox.V2