[utilities/kate/release/20.08] doc/katepart: Highlight documentation: add feature of comment position

Christoph Cullmann null at kde.org
Sat Jul 18 18:35:01 BST 2020


Git commit 723543f3dfb25e8193dd5f1efbe89272c2ff5196 by Christoph Cullmann, on behalf of Nibaldo González.
Committed on 18/07/2020 at 17:37.
Pushed by cullmann into branch 'release/20.08'.

Highlight documentation: add feature of comment position

M  +11   -2    doc/katepart/development.docbook

https://invent.kde.org/utilities/kate/commit/723543f3dfb25e8193dd5f1efbe89272c2ff5196

diff --git a/doc/katepart/development.docbook b/doc/katepart/development.docbook
index 4d011ace9..ee52fb4d5 100644
--- a/doc/katepart/development.docbook
+++ b/doc/katepart/development.docbook
@@ -486,8 +486,9 @@ and tabulator (<userinput>'\t'</userinput>).</para>
 <varlistentry>
 <term>The element <userinput>comment</userinput> in the group
 <userinput>comments</userinput> defines comment properties which are used
-for <menuchoice><guimenu>Tools</guimenu><guimenuitem>Comment</guimenuitem></menuchoice> and
-<menuchoice><guimenu>Tools</guimenu><guimenuitem>Uncomment</guimenuitem></menuchoice>.
+for <menuchoice><guimenu>Tools</guimenu><guimenuitem>Comment</guimenuitem></menuchoice>,
+<menuchoice><guimenu>Tools</guimenu><guimenuitem>Uncomment</guimenuitem></menuchoice> and
+<menuchoice><guimenu>Tools</guimenu><guimenuitem>Toggle Comment</guimenuitem></menuchoice>.
 Available attributes are:</term>
 
 <listitem>
@@ -505,6 +506,14 @@ multiline comment. Assume you have <emphasis>beginRegion="Comment"</emphasis>
 <emphasis>region="Comment"</emphasis>. This way uncomment works even if you
 do not select all the text of the multiline comment. The cursor only must be
 in the multiline comment.</para>
+<para><userinput>position</userinput> defines where the comment is inserted.
+By default, the comment is placed at the beginning of the line at column 0,
+but if you use <emphasis>position="afterwhitespace"</emphasis> the comment is
+inserted after leading whitespaces right, before the first non-whitespace character.
+This is useful for putting comments correctly in languages where indentation
+is important, such as Python or YAML.
+This attribute is optional and the only possible value is
+<emphasis>afterwhitespace</emphasis>.</para>
 </listitem>
 </varlistentry>
 


More information about the kde-doc-english mailing list