Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Source Code Box Explained

Author
Message
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 9th Apr 2003 16:11
Hi all,

I've added in a new feature to Apollo today - one of allowing you to paste in source code with your message that will appear as an attachment to the message (and not embedded into the body). There are a number of reasons for this:

1) Message bodies are limited in size and people have been trying to post code that exceeds this byte limit. There is no (realistic) limit on the size of the source code attachments.

2) People are finding trouble with the "code" tags - these will still work, but now you have another choice.

3) The code tags don't work on Opera, the source code button will.

That's about it really - have fun!

Cheers,

Rich
"Gentlemen, we are about to short-circuit the Universe!"
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 9th Apr 2003 16:14
Here is a message with some code.

Note the new button.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
actarus
21
Years of Service
User Offline
Joined: 29th Aug 2002
Location: 32 Light Years away
Posted: 9th Apr 2003 16:19 Edited at: 9th Apr 2003 16:19
ah! it works now

Good add

Just remember that you're standing on a planet that's evolving
And revolving at nine hundred miles an hour!
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 9th Apr 2003 16:24
Yeah it works now, not too bad though - 40mins from concept to implementation. Only issue which I'll sort out is you can't edit code once posted (you can still edit the message it's attached to though). But other than that it was pretty painless.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
Martyn Pittuck
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 9th Apr 2003 16:32
I saw some php highlighting system somwhere.

Want me to see if i can find it for ya? I am not sure, but if the DBPro IDE has a keyword list then some syntax highlihting could be implememted pretty easily.

Just a though

Good work anywayz, now i got no excuse not to start to start my game i have planned

The Outside is a evil place to be, too much light, too much noise and too many distractions....
I went outside once and my FPS rate dropped to 5.
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 9th Apr 2003 18:07
@Rich

Do you think you could add a feature whereby we can upload files (with a limit of say 2MB) - this would be useful for attaching media. To keep space down these should be deleted say, one month after being posted.

Current Project: Retro Compo. Entry.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 9th Apr 2003 18:14
Martyn - I've been working on a code highlighter for a while but it's hard to get it working quickly (in a manner that doesn't suck up some serious clock cycles). But see what you can find and let me know.

Rob - It's not the space that worries me, it's the amount of bandwidth it would use. We'll see, but there are no immediate plans for file attachments other than in the DBDN forum.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
Danmatsuma
21
Years of Service
User Offline
Joined: 2nd Mar 2003
Location: Australia
Posted: 9th Apr 2003 19:10
Nice work rich

ZX Spectrum 48k Issue 3, Radio shack Tape drive, Rank arena 12" T.V. set.
empty
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 9th Apr 2003 19:16 Edited at: 9th Apr 2003 19:17
Quote: "
3) The code tags don't work on Opera, the source code button will.
"


The code tags do work in Opera (version 7+).
They don't work on Mozilla (Netscape etc)

By the way: Nice idea this source code box!

Ogres have layers.
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 10th Apr 2003 00:03
hey Rich ya know what would be cool, is if it would detect commented lines and display them in green/blue - might just be i've been looking at msdn all day but i kinda like that

but this is a cool new feature... whats the actual limit for the code like 512kb? i mean that should be more than enough - but is good to know how many lines i could possible add hehee

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Andy Igoe
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 10th Apr 2003 02:37
.

Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.
GuySavoie
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location:
Posted: 10th Apr 2003 02:48
Rich:

With the coming IDE update, I will be enabling the ability to export as RTF or HTML, so the IDE can save highlighted code.

Perhaps a minimal HTML set could be enabled in the code window?

P.S. RegExp searching is done

Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 10th Apr 2003 02:57
Ok, trying this out...

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 10th Apr 2003 03:15
Raven - "if it would detect commented lines" - see post from Guys as to why I'm not doing this

Raven - "whats the actual limit for the code like 512kb?" Err 2 Gigabytes I believe

(not that IE could cope pasting that much text into a textfield mind you).

Guys - "Perhaps a minimal HTML set could be enabled in the code window?"

Definitely - let me know which commands are valid and I'll enable them.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 10th Apr 2003 04:29 Edited at: 10th Apr 2003 04:31
hmm 2Gigbutes... so i'd need around [edit-] correction 8.6Billion [endedit-] lines (if they were all full) - don't think i can hit that
christ that's take me around 2days just to upload lol

really i'd just be happy in the command set if we have html colours - look forward to the new updates

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
GuySavoie
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location:
Posted: 10th Apr 2003 06:59
Rich, here is the raw output. I could probably reduce the output, but it would limit the usability of the IDE output for other uses.

Perhaps you could filter the raw output on any source code upload and drop font sizes, body tags, etc?

GuySavoie
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location:
Posted: 10th Apr 2003 07:00 Edited at: 10th Apr 2003 07:01
It works already!

I'll be sure to get the feature out there soon.

DarkEDIT has html saving already in place, btw.

large_nostril
21
Years of Service
User Offline
Joined: 5th Feb 2003
Location: United States
Posted: 10th Apr 2003 07:13
"The code tags do work in Opera (version 7+).
They don't work on Mozilla (Netscape etc)"
Odd, the code tags work for me on NN 7. They do also work in Opera 7, as empty stated.

If you want fresh underwear in the morning, take it off the night before.
rapscaLLion
21
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Canada
Posted: 10th Apr 2003 07:15
Wow, that's really cool Rich and Guy. Good job

Alex Wanuch
aka rapscaLLion
Kousen Dev Progress >> Currently Working On Editors
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 10th Apr 2003 08:00
hey cool ... wish you'd use the darkedit colour hehee
but thats cool the code should be better for the newbies to read now great job guys

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 12th Apr 2003 17:08
Very nice touch Rich, all we need now is a search engine and the forum will be complete

Current Project: Retro Compo. Entry.
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 12th Apr 2003 17:10 Edited at: 12th Apr 2003 17:17
[Edit - My mistake]

Current Project: Retro Compo. Entry.
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 13th Apr 2003 04:30
gonna try an experiment (^_^)

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 13th Apr 2003 04:31
ahh Raven is a genius
... oki maybe it was obvious, but i thought of it first

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 13th Apr 2003 08:47
hmmm, I just don't get it...no matter HOW much I try Raven's code JUST WON'T work in DBC!!! HELP^_^ :p

The 3D Modeler's Group : http://groups.yahoo.com/group/3dModeler/
The Unofficial DB Newsgroup : http://groups.yahoo.com/group/DBMag/
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 13th Apr 2003 09:27
i think its a bug in DBpro hehee

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 13th Apr 2003 09:34
lol must be...Ill email Lee

The 3D Modeler's Group : http://groups.yahoo.com/group/3dModeler/
The Unofficial DB Newsgroup : http://groups.yahoo.com/group/DBMag/
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 17th Apr 2003 13:56
Still chopping off code...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 17th Apr 2003 14:07
Nope.

"Gentlemen, we are about to short-circuit the Universe!"
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 17th Apr 2003 15:15
Seems to be working now.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 22nd Apr 2003 17:50
Really long code (my retro comp entry 4 times)...

Why the hell'd you ask me for crying out loud!?!

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 22nd Apr 2003 17:51 Edited at: 22nd Apr 2003 17:51
Nooooo!!!! It got cut off!!! There is a realistic limit!

Why the hell'd you ask me for crying out loud!?!

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Martyn Pittuck
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 22nd Apr 2003 18:40
Assuming this is MYSQL stored then there is a limit on the size of mysql entries???

The Outside is a evil place to be, too much light, too much noise and too many distractions....
I went outside once and my FPS rate dropped to 5.
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 22nd Apr 2003 19:00
I dont care, its not like I'm going to write a 4000 line long program that I want to show to you the source for on the forums in a hurry!!!

Why the hell'd you ask me for crying out loud!?!

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
shwuckie
21
Years of Service
User Offline
Joined: 9th May 2003
Location: Australia
Posted: 15th May 2003 13:10
ummmmm Rich??? what new button i cant see anything to link to code????
im using IE 5, please dont tell me i need IE 6 lol

optic blast! megablast! have a blast!!
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 15th May 2003 13:57
Cant you see the Source button ?

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
shwuckie
21
Years of Service
User Offline
Joined: 9th May 2003
Location: Australia
Posted: 16th May 2003 05:21
nope i dont see a source button anywhere i see all the other ones (profile,emial,icq etc) tho!!!

optic blast! megablast! have a blast!!
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 16th May 2003 05:33
It only appears on posts that DO actually have source code attached. Like the 2nd one down in this thread.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
shwuckie
21
Years of Service
User Offline
Joined: 9th May 2003
Location: Australia
Posted: 16th May 2003 15:46
yeah i understaznd that and guess what its not there lol
altho i believe you that its really there.. its just hiding from me! lol

optic blast! megablast! have a blast!!
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 16th May 2003 15:51
Oh well you win some you loose some

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
shwuckie
21
Years of Service
User Offline
Joined: 9th May 2003
Location: Australia
Posted: 16th May 2003 15:59 Edited at: 16th May 2003 16:07
hey whaddayaknow!!! if i turn off zonealarms i can see the source button!! ya, oh dear i dont really wanna do that! ummmm so what sort of link is the source button i've messed around with zonealarms and cant seem to get it to be nice to this site!

***edit***

ok i found the prob, zonealarms thought the source button was an AD Banner and blocked it from my PC lol, now its set to 'Click to View' now i can see code and have ZAP running whoohoo!!!!

optic blast! megablast! have a blast!!
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th May 2003 19:40
"I dont care, its not like I'm going to write a 4000 line long program that I want to show to you the source for on the forums in a hurry!!!"

Oh but I am

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_102.zip
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th May 2003 19:43 Edited at: 16th May 2003 19:45
Actually that gives me an idea, how to include pics on the Apollo boards! - I have attached a JPEG image. Select all the code, paste it into Notepad and save as a .jpg file.

[EDIT]Completely unsurprisingly, it didn't work[/EDIT]

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_102.zip
Nilrem
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 17th May 2003 02:02
I dunno if you was joking or not.. but it said no preview available, can't you just host it somewhere and press alt+p?

I hear and I forget. I see and I remember. I do and I understand.
Martyn Pittuck
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 18th May 2003 22:32
ahahhahahha

You used GIMP

Ok soz

Loads of useless data in that file, i strip them down saves 4-8 bytes per 1k

The Outside is a evil place to be, too much light, too much noise and too many distractions....
I went outside once and my FPS rate dropped to 5.

Login to post a reply

Server time is: 2024-05-20 04:05:36
Your offset time is: 2024-05-20 04:05:36