Continuing a source file

Community Forums/General Help/Continuing a source file

Hardcoal(Posted 2013) [#1]
Is there a way to tell a source code file to continue to another.
not like include.

I want to open a Type in one file
and close it on a second file.

is there a command to tell a file to merge with another before compiling?

why i need that?

order issues. (so i can make sections)

I want to splite a type into serveral files so i wont have to see it all
on one big file.

i dont know how you guys are working with large projects

thanks


GfK(Posted 2013) [#2]
Your best option... oh wait...
i dont know how you guys are working with large projects


Yeah... as I was saying. Your best option is to use BLIdePlus and enable code folding. Basically you'll still have your type/class in one big file, but you can close sections of it (functions, methods, loops etc), so that they only appear in the IDE as one line, and you can click to open/close them.

I've written games with a fairly large code base (see sig) and used BLIde for everything. Though personally, I don't use code folding as I'd got by for so long without it, that I just learned to live without it. Another advantage of BLIde is that you have two dropdown-boxes up top. One contains a list of types in that file, and the other contains a list of functions/methods in the type the cursor is currently inside.

To answer the original question, you can probably use Include to do what you want to do (I haven't tried, but all it does in insert a lump of code from another file). I can see it making a large project impossible to manage, so I really wouldn't do that.


Hardcoal(Posted 2013) [#3]
I also not using folding stuff.
Its inconviniant.


xlsior(Posted 2013) [#4]
Import ?

Anyway, it does seem like bad design what you're trying to do here -- it will be hard to keep things straight & debug down the road if you break up types and such across multiple files.


GfK(Posted 2013) [#5]
I also not using folding stuff.
Its inconviniant.
How is it inconvenient when it gives you almost exactly what you asked for ("so i wont have to see it all on one big file")?


xlsior(Posted 2013) [#6]
Code Folding is the best thing since sliced bread.


Hardcoal(Posted 2013) [#7]
yea Gfk it would be cool if at least there was Fold all button
in blide.
In IDEAL for blitz3d i used to use code folding.
but in blide i didnt notice fold all button.
maybe i missed it or is there a shortcut for that?

lets say im inside a type and i want to fold all (inside the type only).

In jungle ide this functions exsists

But even with the folding option it no good enough for class prohramming.
thats a shame but thats what we have.


I must clear this fact that im only programing in a Type frame
and no functions outside.