Page 2 of 2

Re: Line splitting for really long commands?

Posted: Sat Dec 03, 2011 1:59 am
by Tenaja
I use a single 26" monitor... because I regularly have two docs open at a time, so I don't want my IDE to take up more than half of the screen width.

My preference for line splitting has more to do with simplifying the reading...

Code: Select all

FunctionBeingCalled ( OneLongParameter1,
						OneLongParameter2,
						OneLongParameter3,
						OneLongParameter4,
						OneLongParameter5,
						OneLongParameter6,
						OneLongParameter7,
						OneLongParameter8)

Re: Line splitting for really long commands?

Posted: Sat Dec 03, 2011 2:59 am
by IdeasVacuum
.....oh no, that's a terrible waste, with the code like that you are only using about 3 of your 26 inches available! :mrgreen:

Re: Line splitting for really long commands?

Posted: Sat Dec 03, 2011 3:01 am
by Shield
SCNR! :mrgreen:

Image

But I never go over 120 characters per line as it really gets hard to read,
especially on my laptop while sitting in the train. :wink:

Re: Line splitting for really long commands?

Posted: Sat Dec 03, 2011 1:33 pm
by Kuron
Danilo wrote:Image

:lol:
EGads! That would kill my neck having to keep turning it to see the whole screen.

Re: Line splitting for really long commands?

Posted: Sat Dec 03, 2011 4:23 pm
by Tenaja
IdeasVacuum wrote:.....oh no, that's a terrible waste, with the code like that you are only using about 3 of your 26 inches available! :mrgreen:
It often improves readability.

Re: Line splitting for really long commands?

Posted: Wed Dec 28, 2011 10:37 am
by blueznl
Kuron wrote:
Danilo wrote:Image

:lol:
EGads! That would kill my neck having to keep turning it to see the whole screen.
Dunno... I use 2x 22" 16:9 next to each other and it all looks fine to me...

Re: Line splitting for really long commands?

Posted: Wed Dec 28, 2011 2:05 pm
by dobro
in EPB (french editor)

http://michel.dobro.free.fr/download.php?view.25


a line like:
If OpenWindow(0, 100, 200, 195, 260, "PureBasic Window", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget)
Can be written like this :

If OpenWindow(0,_
100,_
200,_
195,_
260,_
"PureBasic Window",_
#PB_Window_SystemMenu_
| #PB_Window_MinimizeGadget_
| #PB_Window_MaximizeGadget)
so it is possible to do :lol:

and more things like:

Using the command "_declare" in the beginning of listing
Automatically Write your statement of procedures

use:
You put your procedure at the end of listing
Then on top of it, you write _declare
EPB will then write all the statements for you!

and more ....

the commands:

_catchsound
_catchsprite
_catchimage


As soon as you use these commands (in the beginning of listing)

A openfilerequester ask you to choose which files to include
(multiselection possible)

EPB and generate the code lines for the inclusion of these files has the location of controls,

If DataSection exists, it will be populated (insertion of new data)
Otherwise it will be created before being filled




amazing is not it? :)

but ... it is in French :twisted:
and still in development phase
Image

Re: Line splitting for really long commands?

Posted: Wed Dec 28, 2011 2:10 pm
by MachineCode
IdeasVacuum wrote:
1920
You sure you got the monitor the right way round? :mrgreen:
What's so funny? 1920 x 1080 is a high-def display. Surely you knew that?