|I know that in Java you can place a */ or something similar at the beginning and end of the comments, and then not have to start each new sentence with a star.
The first thing to realize is that you don't have to type a hash at the start of every line. (You used the word "star", but a star is this symbol: "*". A "hash" or a "pound sign" is this symbol: "#". Just so you know... :-) )
Any decent editor (and quite a few bad ones) will let you comment a block without really thinking about it. The trick is, finding an editor that you're used to. I don't really recommend learning vi (it's horrible to learn), but once you know it, things work almost without any concious effort.
For example, using vi, I do this, pretty much by reflex:
- type "ma" (mark current line as "a")
- hit "i" for insert mode, then type my comment
- hit "ESC" (to exit insert mode)
- type "mb" (to mark the new line (the end of the comment) as "b")
- type ":'a,'bs/^/#/" (from line a to line b, match at the start of line, and substitute in a hash )
- type ":'a,'b>" (optional: indent one level, add more > symbols to indent more)
You can do pretty much the same thing in Emacs, or any other editor you like.
Good luck! :-)
Are you posting in the right place? Check out Where do I post X? to know for sure.
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
Want more info? How to link or
or How to display code and escape characters
are good places to start.