Skip to main content

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

That is interesting, how did you know tab+ctl+/ ? It does help. I wish there were more commenting options like, Box Comment.

Lets look at the following text :

 The function "mlfFprime" contains the normal interface for the "fprime"
M-function from file
"/home/superman/a/sebgoa/nanomos/nanomos-2.5/src/c/fprime.m" (lines 1-147).
This function processes any input arguments and passes them to the
implementation version of the function, appearing above.

Example of Box Comment:
 !>
 !!          The function "mlfFprime" contains the normal interface for the "fprime"
 !!          M-function from file
 !!         "/home/superman/a/sebgoa/nanomos/nanomos-2.5/src/c/fprime.m" (lines 1-147).
 !!         This function processes any input arguments and passes them to the
 !!        implementation version of the function, appearing above.
 !<
 
This can be latter captured using eclox into documentation.

Thanks
Reddy

On Fri, Jul 2, 2010 at 1:48 PM, Maksym Petrenko <petrenkomaxim@xxxxxxxxx> wrote:
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




--
-----------------------------------------------------
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.


Back to the top