Jump to content

Translations:Help:Contents/7/zh-cn: Difference between revisions

From KDE TechBase
Fengchao (talk | contribs)
Created page with "; 语法高亮 : C++ Qt/KDE 代码用<tt><syntaxhighlight lang="cpp"></tt>, <tt><syntaxhighlight lang="cpp" line=""></tt>, <tt><syntaxhighlight lang="cpp-qt"&gt..."
 
(No difference)

Latest revision as of 02:29, 4 August 2012

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Help:Contents)
; Syntax highlighting
: Wrap your C++ Qt/KDE code snippets in <tt>&lt;syntaxhighlight lang="cpp"&gt;</tt>, <tt>&lt;syntaxhighlight lang="cpp" line=""&gt;</tt>, <tt>&lt;syntaxhighlight lang="cpp-qt"&gt;</tt> and <tt>&lt;/syntaxhighlight&gt;</tt> to get syntax highlighting (<tt>cpp</tt> for C++, <tt>cpp-qt</tt> for Qt) and numbered lines (<tt>line=""</tt>). Replace <tt>cpp</tt> with [http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi#Supported_languages the language used], e.g. <tt>ruby</tt> for Ruby and <tt>python</tt> for Python (soon). Use <tt>ini</tt> for {{path|.desktop}} files, <tt>xml</tt> for XML files.
语法高亮
C++ Qt/KDE 代码用<syntaxhighlight lang="cpp">, <syntaxhighlight lang="cpp" line="">, <syntaxhighlight lang="cpp-qt"></syntaxhighlight> 括起来可以进行语法高亮 (C++ 使用 cpp C++,QT 使用 cpp-qt) 行号使用(line=""). 将cpp替换为使用的语言,例如Ruby使用 ruby,Python使用python. .desktop 使用 ini,XML使用xml