• Welcome to Dark Bit Factory & Gravity.
 

How many code lines...

Started by bikemadness, February 08, 2007

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

bikemadness

... 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.
Have a Yahappy day.
I don't know what is wrong with the world - but I know how to fix it.

Clyde

#1
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.

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.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Shockwave

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.
Shockwave ^ Codigos
Challenge Trophies Won:

Hotshot

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

Shockwave

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.
Shockwave ^ Codigos
Challenge Trophies Won:

Clyde

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.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Hotshot

OH right...sorry about that..... :whack: lol

rain_storm

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.

Challenge Trophies Won:

bikemadness

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.
Have a Yahappy day.
I don't know what is wrong with the world - but I know how to fix it.

rain_storm

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.

Challenge Trophies Won:

Clyde

If you use the code tags, you'll automatically get a scrollable window depending on the length of the listing.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won: