Dark Bit Factory & Gravity

GENERAL => General chat => Topic started by: bikemadness on February 08, 2007

Title: How many code lines...
Post by: bikemadness on February 08, 2007
... can be posted, using the scrolling grey box - and how do you activate it?
I typed out a role playing adventure book as a program and it used up 4500 lines - too much?

have a Yahappy day.
Title: Re: How many code lines...
Post by: Clyde on February 08, 2007
Hi BikerMadness :)

I have replied to this concerning the code tags, when you asked in your Letter Scrambler topic, http://dbfinteractive.com/index.php?topic=1329.msg20913#msg20913

I will guide you through it again though. No worries there.

What you need to do, is first press the open square bracket next to the P key. [ Then type the words Code and then a closing square bracket ]

Next paste in your code; and this time to switch the code formatting off after your listing, type in between the square brackets [ & ] a left slash / followed by code

This you can do with other text formatting styles; which you can find more information on in the help tab. (http://dbfinteractive.com/index.php?action=help;page=post)

As far as I can see from a look in the settings, there isnt a limit to how long you can add code.

Hope this helps,
Cheers and all the best,
Clyde.
Title: Re: How many code lines...
Post by: Shockwave on February 08, 2007
I am inclined to agree with Clyde, and I can't find any setting anywhere on this forum that limits the size of code posts... However I have, personally run into difficulties with very long listings.

If you have a very long listing, you may well be better off attaching it to your post instead (please use winzip or winrar to zip first!). Of course it goes without saying that we really appreciate any source that you've made that you want to share with the rest of the community.
Title: Re: How many code lines...
Post by: Hotshot on February 08, 2007
WHY couldnt u do somethings like this?

; this just example how easy is instead of you going all through long lists!

;put global anythings

Graphics Screen_x,Screen_Y,Depth,Window
; or on here as well

include "load_graphics.bb"
include "Control_Player.BB"
include "Enemy Al.BB"
include "Render Graphics.BB"

while not keydown(Press_Escape)
       let_Play_Game()
       flip
wend

I think that is good idea as long u know what u doing !  O0
Title: Re: How many code lines...
Post by: Shockwave on February 08, 2007
Hotshot, just because the code tags or attachment option preserve the layout of the code and stop other bb code tags and smilies messing up the listing.
Title: Re: How many code lines...
Post by: Clyde on February 08, 2007
I get where your comming from Hotshot but I think you've mis-read the post. Having include files for certain aspects, for example graphics functions in one, and music in another. Which is a great tip if the language supports the feature, but BM is asking about how to post source  with the Code formatting tags.
Title: Re: How many code lines...
Post by: Hotshot on February 08, 2007
OH right...sorry about that..... :whack: lol
Title: Re: How many code lines...
Post by: rain_storm on February 08, 2007
Well if its written in Yabasic then there should be no real problem with the size of the code as yabasic generally produces small source code however attaching it as a zip file is my personal preference for rather large projects.
Next time you are posting something have a look at the 'Additional options' feature. You will see it directly below the post you are typing (the bottom left corner where you type in text) click on that and you will see it.
Title: Re: How many code lines...
Post by: bikemadness on February 08, 2007
I was unsure and wondering because I've seen a whole screen of code (here) not scroll and smaller stuff scrolls in its own grey box. This is all I can do to post, I can't handle anything else, sorry.

Have a Yahappy day.
Title: Re: How many code lines...
Post by: rain_storm on February 08, 2007
It will come to you as and when you need it. Im not all that tech savvy myself Iv only had this computer a few months now. its all trial and error with me.
Title: Re: How many code lines...
Post by: Clyde on February 08, 2007
If you use the code tags, you'll automatically get a scrollable window depending on the length of the listing.