Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Commenting in FORTRAN IDE

Very strange, but ctrl+/ seems to work differently depending on the indentation of the code. If you tab the Dharmendar's sample code (select all and press tab) and then do ctrl+/ - it will comment everything. With no tabbing, it will interchange the commented/code lines as described by Dharmendar.

Maksym


--- On Fri, 7/2/10, Dharmendar Reddy <dharmareddy84@xxxxxxxxx> wrote:

From: Dharmendar Reddy <dharmareddy84@xxxxxxxxx>
Subject: [photran] Commenting in FORTRAN IDE
To: photran@xxxxxxxxxxx
Date: Friday, July 2, 2010, 2:24 PM

Hello,
         Can any one answer this query?
 Say if i have a code fragment like this:
 
  integer :: ic,numX

! Ensures that log(0) won't occur
 xmin=10e-16

! Ensure that log(0) won't occur
 do ic=1,numX

 Is there any way i can comment all the above lines at once?
 if i select all the lines and use ctl+/ 
 photran does the following

! integer :: ic,numX

Ensures that log(0) won't occur
! xmin=10e-16

Ensure that log(0) won't occur
! do ic=1,numX

it will uncomment the commented lines and comment the uncommented lines.

Thanks
Reddy
--
-----------------------------------------------------
Dharmendar Reddy Palle
Graduate Student
Microelectronics Research center,
University of Texas at Austin,
10100 Burnet Road, Bldg. 160
MER 2.608F, TX 78758-4445
e-mail: dharmareddy84@xxxxxxxxx
Phone: +1-512-350-9082
United States of America.


-----Inline Attachment Follows-----

_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran


Back to the top