Thanks for all the replies, and for reminding me that I'm a complete
dinosaur for still programming in Fortran ;^>. Obviously Doug you
haven't had to program in Fortran 90/95. Official form for
continuations is to put an ampersand in col. 73 of the first line and
another one in col. 6 of the continuation line. The second part is
what's always been done, but the col. 73 bit is a royal PITA.  If
there are a variable number of existing characters in each line, which
is the case here since I am editing existing code, I am not sure
John's script will work. Luckily I am just doing this in a short code
so it won't kill me to edit by hand, but I was hoping for a better
solution for future occasions when I have to update more massive
programs.

On Oct 14, 2:07 pm, Doug McNutt <dougl...@macnauchtan.com> wrote:
> At 18:32 +0100 10/14/10, John Delacour wrote:
>
> >At 08:33 -0700 14/10/2010, jtk wrote:
>
> >>Has anyone figured out how to automatically place a character (e.g.,
> >>&) in the same column of selected lines? This would be really useful
> >>for Fortran continuation lines. So far I can't see how to do it other
> >>than spacing one by one over from the end of the text to column 73,
> >>which is really tedious if you're updating old code with a lot of
> >>continuation lines.
>
> >I don't see quite what you're wanting to do
>
> Neither do I.  The last time I ordered a continuation in FORTRAN it was on a 
> Hollerith card in column 6. Sequence numbers begin in column 73 for sorting 
> of a dropped deck. I'm pretty sure that modern compilers allow for long lines.
>
> You need to punch a tab control card and insert it on the drum at the top of 
> the 026 card punch. That way the tab key on the keyboard will move the blank 
> card to the right spot.
>
> Seriously though, the best way to edit and otherwise muck with card images 
> like that is with a spreadsheet. Second best is Nisus 5 on a classic mac like 
> this 8500. I have been recently told that emacs allows real tab stops but I 
> haven't yet figured out how to set the required configuration options.
>
> It's fairly easy, on a spreadsheet, to prepare formats that convert columns 
> to data plus spaces that guarantee character spacing assuming constant width. 
>  Excel's REPT( ) function, for instance.
>
> The folks are Bare Bones have never agreed with me that variable width tab 
> stops are meaningful.
>
> --
> -->  The best programming tool is a soldering iron <--

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to