1
<?xml version="1.0" encoding="utf-8"?>
2
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" style="task" id="plugin-code-comment" xml:lang="fi">
5
<link type="guide" xref="gedit-plugin-guide#gedit-additional-plugins"/>
6
<revision version="3.4" date="2013-02-24" status="review"/>
9
<name>Jim Campbell</name>
10
<email its:translate="no">jwcampbell@gmail.com</email>
13
<desc>Comment-out or uncomment a block of code.</desc>
15
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
16
<mal:name>sampo555</mal:name>
17
<mal:email>sampo_75 [at] windowslive [dot] com</mal:email>
18
<mal:years>2012.</mal:years>
21
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
22
<mal:name>Valto Wirkola</mal:name>
23
<mal:email>valto [dot] wirkola [at] yahoo [dot] com</mal:email>
24
<mal:years>2008, 2010</mal:years>
27
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
28
<mal:name>Tommi Vainikainen</mal:name>
29
<mal:email>thv [at] iki [dot] fi</mal:email>
30
<mal:years>2006.</mal:years>
34
<title>Code comment</title>
36
<p>Code comments are portions of text that make it easier for people to
37
understand a program's code, but they don't affect how a program works.
38
Comments are separated from other parts of a program by special
41
<p>The <app>code comment</app> plugin makes it easier to quickly create or
42
remove code comments. To enable the code comment plugin, select
43
<guiseq><gui style="menu">gedit</gui><gui style="menuitem">Preferences</gui>
44
<gui>Plugins</gui><gui>Code comment</gui></guiseq>.</p>
47
<title>To create or remove a comment:</title>
49
<p>Highlight the portion of text where you want to add or remove a
53
<p>To add a comment, click <guiseq><gui style="menu">gedit</gui>
54
<gui>Comment Code</gui></guiseq>, or press <keyseq><key>Ctrl</key>
55
<key>M</key></keyseq>.</p>
58
<p>To remove a comment, click <guiseq><gui style="menu">gedit</gui>
59
<gui>Uncomment Code</gui></guiseq>, or press <keyseq><key>Shift</key>
60
<key>Ctrl</key><key>M</key></keyseq>.</p>
65
<p><app>gedit</app> will automatically use the correct style of comment
66
based on the language or syntax of the file. If <app>gedit</app> doesn't
67
identify your language or syntax, you can select it from the language list
68
in the bottom <gui>Status bar</gui>.</p>