Loading ...
Sorry, an error occurred while loading the content.
 

Re: Code folding problem with fortran77 code

Expand Messages
  • tju329
    Yes, it s indentation based, and it bases on the first column. It will be better that if it can understand the code and works under this way. Hope new version
    Message 1 of 3 , Apr 1, 2007
      Yes, it's indentation based, and it bases on the first column.

      It will be better that if it can understand the code and works under
      this way.

      Hope new version can solve this problem, or at least use a user-
      defined field as I suggested.

      --- In editplus@yahoogroups.com, "bpat1434" <brett@...> wrote:
      >
      > --- In editplus@yahoogroups.com, "tju329" <tju329@> wrote:
      > >
      > > It seems that code folding does not work well on fortran77 code.
      The
      > > first 6 column of each line should not be considered when code
      folding
      > > in fortran77.(see example code below, and have a test)Is there a
      way to
      > > solve this problem in the 2.31 release? (or supply a field to
      save the
      > > start column for each type of code about code folding in the next
      > > release)example code
      > >
      > > DIMENSION A(4,4),B(4),X(4)
      > > DOUBLE PRECISION A,B,I,J
      > >
      > > DATA A/7.0, 9.0, -2.0, 1.0,
      > > * 2.0, 15.0, -2.0, 3.0,
      > > * 1.0, 3.0, 11.0, 2.0,
      > > * -2.0, -2. 0,5.0, 13.0/
      > > DATA B/4.0, 7.0, -1.0, 0.0/
      > >
      > > C Do something
      > > DO I = 1, 4
      > > DO 10 J = 1, 4
      > > C Output
      > > WRITE(*,20) ((A(I,J),I=1,4),J=1,4)
      > > 10 CONTINUE
      > > WRITE(*,20) (B(I),I=1,4)
      > > END DO
      > >
      > > 20 FORMAT(1X,D15.6)
      > >
      > > END
      > >
      > >
      > >
      > >
      > >
      > > [Non-text portions of this message have been removed]
      > >
      >
      > As far as I know, the code folding is still indentation based.
      >
      > I have suggested to Sangil a couple times that he look into the code
      > folding technique of other programs like Notepad++ to see how they
      do
      > it. I'd like to collapse an entire function to make file reading
      > easier. It'd also be nice to collapse sections of HTML as well.
      >
      > ~Brett
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.