[program-l] Re: FW: [program-java] Re: Scripting for Eclipse....

  • From: "Corbett, James" <James.Corbett@xxxxxxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Fri, 9 Oct 2009 08:13:52 -0400

Travis:

There is a multitude of ways to perform a commenting in a Java project. One 
needs to realize that first of all there is actual Java syntax in lets say the 
class, next there would be different syntax from a JSP page, then you could 
have a resource property file and then the ever ominous xml files.

So in Java you could have the double slash, a slash with a single star that 
denotes a block of commented text and each line with in would simply have a 
star prefixed, then you could have a single slash with a double star and each 
line there after prefixed with a star which then denotes a commented block for 
the purpose of documentation for a Java Doc which is used for creating an API. 
In the JSP page, you would have the same syntax that would be used in an HTML 
document.... "<!-- -->".... Same as the XML files. In a property file the use 
of the number sign or pound character is used.

In Eclipse there are different editors for each of the above mentioned and all 
can be touched as a means of making a simple logic change.

So it's not as easy as it first seems.

Jim 

-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx] On 
Behalf Of Travis Roth
Sent: October 8, 2009 22:50
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Re: FW: [program-java] Re: Scripting for Eclipse....

Hi Jim,
I am not sure I understand... This comment line you're talking about, it does 
not have a comment mark in front of it such as // ?
How do you get such a line commented out if there is not code commenting it 
out? (Ok, you're right I am not an Eclipse expert.)

And this light-blue highlight, apparently since it is the only item denoting a 
comment, is it above, below, beside, etc., the line? And the color differs from 
the text and regular background colors?



From: program-java-bounce@xxxxxxxxxxxxx
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James
Sent: Thursday, October 08, 2009 9:52 AM
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Scripting for Eclipse....



Hi:

OK, I've been in denial for the past eight years with regards to scripting.... 
So now I have to take the plunge.

I've a tutorial on scripting so that's not really the issue at the moment, what 
I want to accomplish is while scrolling an editor if a line of code is 
commented out, there usually is a light blue hi-light around the commented 
line. Can I detect this color enhancement and if so can I add my own comment to 
the indication of the line. I would like for it to say somehing brief like just 
the word comment?

Since we are all in the same boat, perhaps this could be a group project.
Those of you who are scripters and those of us that are high end users of the 
IDE could get our heads together? What do y'all think?

J.



James M. Corbett

A - Technical Specialist
GST/HST Micros | Micros de la TPS/TVH
Business Suite Assessing Systems (BSAS) Revenue and Accounting Systems 
Directorate (RASD) | Direction des Systèmes de revenu et de comptabilité
(DSRC) Information Technology Branch (ITB) | Direction générale de 
l'informatique (DGI) Canada Revenue Agency | Agence du revenue du Canada

(613) 941-1338

...hope you guessed my name. ...but what's bothering you is the nature of my 
game!

The Rolling Stones




** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq


** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: