Results 1 to 3 of 3

Thread: [RESOLVED] [C++ Any Version] Collapse/Expand Source, but inside a proc

  1. #1

    Thread Starter
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Resolved [RESOLVED] [C++ Any Version] Collapse/Expand Source, but inside a proc

    .Net can collapse or expand outlining inside a Class, but not inside a procedure. I have very big procedures (written by other people) inside Classes in VC6 and I need to group code using { and } as Start/End of Block, this way i could expand /collapse statements like: For - If - Switch, anything that uses {}.

    Anybody knows about some software or shareware that's able to do it?

  2. #2
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: [C++ Any Version] Collapse/Expand Source, but inside a proc

    VS.NET does it in all flavors.

    It can expand/collapse at namespace, class, method and procedural levels.

    Can you switch to VS.NET? (Even the Express Editions do it)

    It also has special little things called "regions"

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  3. #3

    Thread Starter
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: [C++ Any Version] Collapse/Expand Source, but inside a proc

    I just need this to view the code, so i can paste my .CPP code anywhere, the thing is: if I paste this proc inside a class in C# i can't expand or collapse If statements inside the proc, maybe because it's VC6 i don't know. I don't have VC.Net here to try there. Also, i know about regions, but it's just for viewing purposes, i won't be changing the code for real.

    I think i'll have to write my own file reader using {} as limiters so i can see the code hierarchically.

    PS: The reason for all this trouble, are these horrible old procs, ~3000+ lines of code each, it's hard to understand all the logic just scrolling down, that's why i need some way to expand the proc by pieces, like nodes in a Treeview.

    EDIT: I found this Tool that does what i need: NOTEPAD PLUS Solved
    Last edited by jcis; Jun 26th, 2008 at 09:55 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width