PageRenderTime 69ms CodeModel.GetById 30ms app.highlight 4ms RepoModel.GetById 26ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/users-guide/commenting.html

#
HTML | 15 lines | 15 code | 0 blank | 0 comment | 0 complexity | f74b32dc3fb6eeec7251c7871c48b541 MD5 | raw file
 1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Commenting Out Code</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="jEdit 4.3 User's Guide"><link rel="up" href="source-edit.html" title="Chapter 6. Editing Source Code"><link rel="prev" href="indent.html" title="Tabbing and Indentation"><link rel="next" href="bracket-matching.html" title="Bracket Matching"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Commenting Out Code</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="indent.html">Prev</a> </td><th width="60%" align="center">Chapter 6. Editing Source Code</th><td width="20%" align="right"> <a accesskey="n" href="bracket-matching.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="commenting"></a>Commenting Out Code</h2></div></div></div><p>Most programming and markup languages support the notion of
 2        &#8220;<span class="quote">comments</span>&#8221;, or regions of code which are ignored by the
 3        compiler/interpreter. jEdit has commands which make inserting comments
 4        more convenient.</p><p>Comment strings are mode-specific, and some in some modes such as
 5        HTML different parts of a buffer can have different comment strings. For
 6        example, in HTML files, different comment strings are used for HTML text
 7        and inline JavaScript.</p><p><span class="guimenu"><strong>Edit</strong></span>&gt;<span class="guisubmenu"><strong>Source
 8        Code</strong></span>&gt;<span class="guimenuitem"><strong>Range Comment</strong></span> (shortcut:
 9        <code class="keycap">C+e C+c</code>) encloses the selection with comment start and
10        end strings, for example <code class="literal">/*</code> and <code class="literal">*/</code>
11        in Java mode.</p><p><span class="guimenu"><strong>Edit</strong></span>&gt;<span class="guisubmenu"><strong>Source
12        Code</strong></span>&gt;<span class="guimenuitem"><strong>Line Comment</strong></span> (shortcut:
13        <code class="keycap">C+e C+k</code>) inserts the line comment string, for example
14        <code class="literal">//</code> in Java mode, at the start of each selected
15        line.</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="indent.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="source-edit.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="bracket-matching.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Tabbing and Indentation </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Bracket Matching</td></tr></table></div></body></html>