Forum Topic: Code tags agogo

(1,532 views • 53 replies)

This topic is 2 pages long. [ 1 | 2 ]

<< < > >>
Happy

liljim

Reply To Post Reply & Quote

Posted at: 9/19/07 04:07 PM

liljim NEUTRAL LEVEL 27

Sign-Up: 12/16/99

Posts: 8,863

Alright, you can use code tags in the programming and flash forums now. For example:

<a href="http://www.newgrounds.com/">Blah</a> Whatever

<script type="text/javascript">

function Whatever()
{
	window.location.href = "wherever";
}

</script>

<a href="javascript:Whatever();">Blah</a> Whatever

Use it when you need it.

BBS Signature

None

phyconinja

Reply To Post Reply & Quote

Posted at: 9/19/07 04:09 PM

phyconinja EVIL LEVEL 25

Sign-Up: 09/18/04

Posts: 2,828

yeay.. that can be usefull ^^


None

ApatheticMark

Reply To Post Reply & Quote

Posted at: 9/19/07 04:14 PM

ApatheticMark DARK LEVEL 17

Sign-Up: 04/29/05

Posts: 982

<script type="text/javascript">
function woop() {
window.open.document.write("hoorays!");
}
</script>
<a href="#" onclick="woop()">LINKAGE!</a>

woop.

BBS Signature

None

elbekko

Reply To Post Reply & Quote

Posted at: 9/19/07 04:15 PM

elbekko EVIL LEVEL 16

Sign-Up: 07/23/04

Posts: 6,587

Sexy! <3

"My software never has bugs. It just develops random features. " - Unknown

[ FluxBB developer | Quickmarks 0.5.1 | Strings & Ints - my blog ]

BBS Signature

None

Siggles

Reply To Post Reply & Quote

Posted at: 9/19/07 04:15 PM

Siggles DARK LEVEL 17

Sign-Up: 04/07/06

Posts: 1,621

HOLY FUCKING SHIT I WAS HERE WHEN THIS HAPPENED.

Also, very cool :). Maybe just change the background image. It is kinda weird :\.


None

DFox

Reply To Post Reply & Quote

Posted at: 9/19/07 04:16 PM

DFox LIGHT LEVEL 30

Sign-Up: 08/09/03

Posts: 9,468

<?php
if ($this == 'works')
{
	echo 'James and Ross are my heroes.';
}
?>

None

DannyIsOnFire

Reply To Post Reply & Quote

Posted at: 9/19/07 04:16 PM

DannyIsOnFire DARK LEVEL 19

Sign-Up: 04/14/05

Posts: 7,192

I <3 U ^^

<?php
function hoot(){
echo "Thanks liljim!";
}

hoot();

?>

None

Siggles

Reply To Post Reply & Quote

Posted at: 9/19/07 04:18 PM

Siggles DARK LEVEL 17

Sign-Up: 04/07/06

Posts: 1,621

<?php
$thisiscool = "This is very awesome";
echo "$thisiscool";
?>

None

elbekko

Reply To Post Reply & Quote

Posted at: 9/19/07 04:19 PM

elbekko EVIL LEVEL 16

Sign-Up: 07/23/04

Posts: 6,587

<?php echo "No syntax highlighting I guess, but I'll live :D"; ?>

"My software never has bugs. It just develops random features. " - Unknown

[ FluxBB developer | Quickmarks 0.5.1 | Strings & Ints - my blog ]

BBS Signature

None

Craige

Reply To Post Reply & Quote

Posted at: 9/19/07 04:21 PM

Craige LIGHT LEVEL 08

Sign-Up: 07/17/04

Posts: 3,071

Thank you; thank you; thank you; thank you; thank you; thank you!

This'll make things a lot easier around here. I'm glad you guys found time to impliment it.


None

elbekko

Reply To Post Reply & Quote

Posted at: 9/19/07 04:26 PM

elbekko EVIL LEVEL 16

Sign-Up: 07/23/04

Posts: 6,587

Indeed, no more annoyances =D

"My software never has bugs. It just develops random features. " - Unknown

[ FluxBB developer | Quickmarks 0.5.1 | Strings & Ints - my blog ]

BBS Signature

None

phyconinja

Reply To Post Reply & Quote

Posted at: 9/19/07 04:29 PM

phyconinja EVIL LEVEL 25

Sign-Up: 09/18/04

Posts: 2,828

<?= "Yeay"; ?>

None

INeedABetterAlias

Reply To Post Reply & Quote

Posted at: 9/19/07 04:29 PM

INeedABetterAlias EVIL LEVEL 37

Sign-Up: 06/08/05

Posts: 149

Just a quick bug report: When looking search results, the code does not appear properly.


None

liljim

Reply To Post Reply & Quote

Posted at: 9/19/07 04:30 PM

liljim NEUTRAL LEVEL 27

Sign-Up: 12/16/99

Posts: 8,863

At 9/19/07 04:29 PM, INeedABetterAlias wrote: Just a quick bug report: When looking search results, the code does not appear properly.

Yeah, I just noticed that too. I've passed it on to Bob to have a look at.

BBS Signature

None

elbekko

Reply To Post Reply & Quote

Posted at: 9/19/07 04:32 PM

elbekko EVIL LEVEL 16

Sign-Up: 07/23/04

Posts: 6,587

At 9/19/07 04:29 PM, INeedABetterAlias wrote: Just a quick bug report: When looking search results, the code does not appear properly.

How'd you get it to search such recent posts? :/

"My software never has bugs. It just develops random features. " - Unknown

[ FluxBB developer | Quickmarks 0.5.1 | Strings & Ints - my blog ]

BBS Signature

None

DannyIsOnFire

Reply To Post Reply & Quote

Posted at: 9/19/07 04:33 PM

DannyIsOnFire DARK LEVEL 19

Sign-Up: 04/14/05

Posts: 7,192

At 9/19/07 04:32 PM, elbekko wrote:
At 9/19/07 04:29 PM, INeedABetterAlias wrote: Just a quick bug report: When looking search results, the code does not appear properly.
How'd you get it to search such recent posts? :/

Search your own post(s)?


None

Momo-the-Monkey

Reply To Post Reply & Quote

Posted at: 9/19/07 04:35 PM

Momo-the-Monkey EVIL LEVEL 34

Sign-Up: 10/15/05

Posts: 3,250

AHHHHH This is awesome! I can't believe I miseed this.

Thanks you so much James and Ross!!! This will definitely help out greatly. Is this only in the programming forum?

Skippity do dah!
<? 
echo 'Now it's time for some quick html actions';
?>

:p

Randosity is something you should see...
You should also see Gir's Soundboard...
[ PHP: Main | Music ]

BBS Signature

None

DannyIsOnFire

Reply To Post Reply & Quote

Posted at: 9/19/07 04:36 PM

DannyIsOnFire DARK LEVEL 19

Sign-Up: 04/14/05

Posts: 7,192

Also liljim, are you gonna add a button above the message post area where the rest of the HTML tags are?
I'm aware it's written on the left hand side, but it's odds on a fair few people won't see it. Just a though/query.

Code tags agogo


None

INeedABetterAlias

Reply To Post Reply & Quote

Posted at: 9/19/07 04:36 PM

INeedABetterAlias EVIL LEVEL 37

Sign-Up: 06/08/05

Posts: 149

At 9/19/07 04:32 PM, elbekko wrote:
At 9/19/07 04:29 PM, INeedABetterAlias wrote: Just a quick bug report: When looking search results, the code does not appear properly.
How'd you get it to search such recent posts? :/

Pardon the grammatical error in my last post. I went to look at liljim's other recent posts, which appear as results on a search page.


None

bob

Reply To Post Reply & Quote

Posted at: 9/19/07 04:42 PM

bob EVIL LEVEL 17

Sign-Up: 08/29/03

Posts: 612

At 9/19/07 04:30 PM, liljim wrote:
At 9/19/07 04:29 PM, INeedABetterAlias wrote: Just a quick bug report: When looking search results, the code does not appear properly.
Yeah, I just noticed that too. I've passed it on to Bob to have a look at.

It's all you, my man :)

You're closing out the paragraphs still. :P

BBS Signature

None

Cinjection

Reply To Post Reply & Quote

Posted at: 9/19/07 04:43 PM

Cinjection LIGHT LEVEL 18

Sign-Up: 04/06/04

Posts: 2,482

#include <iostream>

using std::cout;
using std::endl;

int main()
{

	cout<<"Why are almost all the thank-yous here in PHP?"<<endl;
	cout<<"OTHER LANGUAGES EXSIST!"<<endl;

	if (1)
	         cout<<"Thanks liljim!"<<endl;

	std::cin.get();
	return 0;

}

The best part about going on Newgrounds is that no one know that you're naked!
[My Coder Profile]

BBS Signature

None

Afro-Ninja

Reply To Post Reply & Quote

Posted at: 9/19/07 04:46 PM

Afro-Ninja EVIL LEVEL 37

Sign-Up: 03/02/02

Posts: 13,466

lol actionscript in the programming forum

var newDepth:Number = _root.getNextHightestDepth();
var myClip:MovieClip = attachMovie("blah","blah"+newDepth,newDepth);

myClip._x=203984209384234;
BBS Signature

None

Cinjection

Reply To Post Reply & Quote

Posted at: 9/19/07 04:52 PM

Cinjection LIGHT LEVEL 18

Sign-Up: 04/06/04

Posts: 2,482

At 9/19/07 04:46 PM, Afro-Ninja wrote: lol actionscript in the programming forum

var newDepth:Number = _root.getNextHightestDepth();
var myClip:MovieClip = attachMovie("blah","blah"+newDepth,newDe pth);

myClip._x=203984209384234;

Blaspheme!

The best part about going on Newgrounds is that no one know that you're naked!
[My Coder Profile]

BBS Signature

None

gankro

Reply To Post Reply & Quote

Posted at: 9/19/07 04:55 PM

gankro EVIL LEVEL 11

Sign-Up: 09/16/06

Posts: 1,175

cout<<"awesome"<<endl;
trace(awesome);
//awesome;
/*awesome*/;
var awesome:String = "awesome";
echo 'awesome';

encase you didn't notice, I like this idea.

My Coding Portfolio (updated frequently)
If you stay in bed for long enough it will be socially acceptable to go to bed again

BBS Signature

None

elbekko

Reply To Post Reply & Quote

Posted at: 9/19/07 05:10 PM

elbekko EVIL LEVEL 16

Sign-Up: 07/23/04

Posts: 6,587

I wonder.

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

"My software never has bugs. It just develops random features. " - Unknown

[ FluxBB developer | Quickmarks 0.5.1 | Strings & Ints - my blog ]

BBS Signature

None

RageOfOrder

Reply To Post Reply & Quote

Posted at: 9/19/07 05:29 PM

RageOfOrder EVIL LEVEL 09

Sign-Up: 08/30/02

Posts: 6,343

#!/usr/bin/perl
# About time! A much needed feature here!

$awesome = liljim;

while( $awesome )
{
        print "Sweeet\n";
}

exit;

At 9/28/09 06:57 PM, citricsquid wrote:
linux isn't for those who want windows. use windows if you want windows.

BBS Signature

None

DearonElensar

Reply To Post Reply & Quote

Posted at: 9/19/07 05:32 PM

DearonElensar LIGHT LEVEL 18

Sign-Up: 06/10/02

Posts: 1,731

Awesomeness :D

<?php
echo "Yay!";
?>
BBS Signature

None

eWhabs

Reply To Post Reply & Quote

Posted at: 9/19/07 05:55 PM

eWhabs EVIL LEVEL 13

Sign-Up: 05/04/06

Posts: 988

Urh.... Python?

print "Yahoo this is awesome!"

yo... yeah.

BBS Signature

None

RageOfOrder

Reply To Post Reply & Quote

Posted at: 9/19/07 06:00 PM

RageOfOrder EVIL LEVEL 09

Sign-Up: 08/30/02

Posts: 6,343

At 9/19/07 05:55 PM, eWhabs wrote: Urh.... Python?

print "Yahoo this is awesome!"
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.

At 9/28/09 06:57 PM, citricsquid wrote:
linux isn't for those who want windows. use windows if you want windows.

BBS Signature

None

RageOfOrder

Reply To Post Reply & Quote

Posted at: 9/19/07 06:02 PM

RageOfOrder EVIL LEVEL 09

Sign-Up: 08/30/02

Posts: 6,343

At 9/19/07 05:29 PM, RageOfOrder wrote: #!/usr/bin/perl
# About time! A much needed feature here!

$awesome = liljim;

while( $awesome )
{
print "Sweeet\n";
}

exit;

Does quoted code keep it's formatting? I say no.

We should probably still see a definitive quote area when we quote code.. otherwise I have to remove all the colons prefixing each line and add code tages myself to quotes.

At 9/28/09 06:57 PM, citricsquid wrote:
linux isn't for those who want windows. use windows if you want windows.

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 02:27 PM

<< Back

This topic is 2 pages long. [ 1 | 2 ]

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!