PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Dec 22, 2014 1:26 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 44 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: PHP Code tags
PostPosted: Fri Jan 11, 2008 4:29 am 
Offline
Admin
User avatar

Joined: Wed Aug 13, 2003 7:02 am
Posts: 4522
Location: York, UK
Just so you know, if you need to post any PHP code you can use:

Syntax: [ Download ] [ Hide ]
Your code here


Like so

Syntax: [ Download ] [ Hide ]
<?php

phpinfo();

?>


This is unitl we get Geshi installed


Top
 Profile  
 
 Post subject: Re: PHP Code tags
PostPosted: Fri Jan 11, 2008 2:11 pm 
Offline
DevNet Master
User avatar

Joined: Wed Dec 06, 2006 5:14 pm
Posts: 3635
Location: Toronto, Canada
I tried that (guessing it would work) for javascript, but it didn't seem to. What languages are currently available?


Top
 Profile  
 
 Post subject: Re: PHP Code tags
PostPosted: Fri Jan 11, 2008 2:28 pm 
Offline
Admin
User avatar

Joined: Wed Aug 13, 2003 7:02 am
Posts: 4522
Location: York, UK
just php


Top
 Profile  
 
 Post subject: Re: PHP Code tags
PostPosted: Fri Jan 11, 2008 2:33 pm 
Offline
Site Administrator
User avatar

Joined: Tue Sep 09, 2003 6:04 pm
Posts: 14293
Location: Fremont, CA, USA
The PHP code tag was added with phpBB3 in the core bbCode parser. That was the only change to the code tag I believe.


Top
 Profile  
 
 Post subject: Re: PHP Code tags
PostPosted: Fri Jan 11, 2008 4:17 pm 
Offline
DevNet Master
User avatar

Joined: Thu Mar 15, 2007 6:28 pm
Posts: 2765
Location: Redding, California
Ah. Good.


Top
 Profile  
 
 Post subject: Re: PHP Code tags
PostPosted: Sun Jan 13, 2008 4:47 am 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
Ok guys, the [php ] tags and [syntax ] etc are now back. Old posts will still look broken until they are editted and re-submitted due to the way the MOD works but they'll soon disappear into the graveyard of posts and we can edit any that are currently active.

On a side note if you try and do just [javascript ] [/ javascript], [cpp ] [/cpp ] etc it will pretty much work.

NOTE: Your browser may have cached CSS. Do a SHIFT + Refresh if things look messed up.

PS: We know that the links above the code don't work right now...


Top
 Profile  
 
 Post subject: Re: PHP Code tags
PostPosted: Sun Jan 13, 2008 9:20 am 
Offline
Forum Contributor
User avatar

Joined: Mon Nov 19, 2007 11:15 am
Posts: 282
Location: UK
The font used in the code boxes is quite small, would it be possible to enlarge it slightly? (Or am I just losing my eyesight? lol)


Top
 Profile  
 
 Post subject: Re: PHP Code tags
PostPosted: Sun Jan 13, 2008 9:37 am 
Offline
DevNet Master
User avatar

Joined: Wed Dec 06, 2006 5:14 pm
Posts: 3635
Location: Toronto, Canada
looks like the same size as the rest of the text to me - what browser are you using?


Top
 Profile  
 
 Post subject: Re: PHP Code tags
PostPosted: Sun Jan 13, 2008 9:48 am 
Offline
DevNet Master
User avatar

Joined: Wed Jun 27, 2007 9:44 am
Posts: 4294
Location: Sofia, Bulgaria
FF 2.0.0.11


Attachments:
smallf.JPG
smallf.JPG [ 178.2 KiB | Viewed 17207 times ]
Top
 Profile  
 
 Post subject: Re: PHP Code tags
PostPosted: Sun Jan 13, 2008 9:51 am 
Offline
Forum Contributor
User avatar

Joined: Mon Nov 19, 2007 11:15 am
Posts: 282
Location: UK
FF 2.0.0.11

Check in this thread to what I mean:

viewtopic.php?f=1&t=77459


Attachments:
ss.jpg
ss.jpg [ 215.37 KiB | Viewed 17205 times ]
Top
 Profile  
 
 Post subject: Re: PHP Code tags
PostPosted: Sun Jan 13, 2008 10:04 am 
Offline
Site Administrator
User avatar

Joined: Sun May 19, 2002 10:24 pm
Posts: 6875
Hmm, it doesn't render correctly at all in Firefox on Linux..


Top
 Profile  
 
 Post subject: Re: PHP Code tags
PostPosted: Sun Jan 13, 2008 10:49 am 
Offline
Admin
User avatar

Joined: Wed Aug 13, 2003 7:02 am
Posts: 4522
Location: York, UK
@astions: force a refresh. That will solve it


Top
 Profile  
 
 Post subject: Re: PHP Code tags
PostPosted: Sun Jan 13, 2008 11:10 am 
Offline
Site Administrator
User avatar

Joined: Sun May 19, 2002 10:24 pm
Posts: 6875
That did the trick. Line numbers aren't showing up for me. Not sure if they are supposed to or not. No biggie.


Top
 Profile  
 
 Post subject: Re: PHP Code tags
PostPosted: Sun Jan 13, 2008 11:14 am 
Offline
Site Administrator
User avatar

Joined: Tue Sep 09, 2003 6:04 pm
Posts: 14293
Location: Fremont, CA, USA
I think we are trying to not show line numbers to make copy/paste cleaner.


Top
 Profile  
 
 Post subject: Re: PHP Code tags
PostPosted: Sun Jan 13, 2008 11:15 am 
Offline
Site Administrator
User avatar

Joined: Sun May 19, 2002 10:24 pm
Posts: 6875
cool, I remember that was annoying.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 44 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group