[php] tags?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
dayyanb
Forum Commoner
Posts: 46
Joined: Wed Jan 23, 2008 12:34 am

[php] tags?

Post by dayyanb »

They don't show up with any formatting for me. Is there some sort of setting to make them do so?
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: [php] tags?

Post by alex.barylski »

I noticed they disappeared when they updated the boards too...for now...I just use *code* tag and then manually replace with *php*
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: [php] tags?

Post by Weirdan »

dayyanb wrote:They don't show up with any formatting for me. Is there some sort of setting to make them do so?
You mean there's no button to add

Code: Select all

tags, or they do not have any effect when added manually?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: [php] tags?

Post by RobertGonzalez »

There is only one tag: [code]. To make it php code, use [code=php]. For javascript, use [code=javascript]. For just about any other language, try using the language name. If we have the plugin for that language installed it will parse. Otherwise it won't.

For more information, please review this thread in Site News about this same topic.

Edit | Hang on a sec, I may be wrong about this syntax.

Code: Select all

<?php
phpinfo();
?>

Code: Select all

<?php
phpinfo();
?>

Code: Select all

<?php
phpinfo();
?>

Code: Select all

var myName;myName = 'Humberto Loiaza';alert('Name is ' + myName.length + ' chars long'); 
Ok, I am wrong. You can use

Code: Select all

or [language] or [syntax="language"] (notice the double quotes). Though when editing, the syntax= style gets replaced with just the tag name.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: [php] tags?

Post by Weirdan »

Everah wrote:There is only one tag: [code]. To make it php code, use [code=php].
But by some fortunate coincidence (bug?)

Code: Select all

, [js] and [sql] works as well.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: [php] tags?

Post by RobertGonzalez »

Sorry weirdan, I just edited my last post. I think we set it up to do what you are seeing.
dayyanb
Forum Commoner
Posts: 46
Joined: Wed Jan 23, 2008 12:34 am

Re: [php] tags?

Post by dayyanb »

Hmm they seem to be showing up properly for me now. Thanks for the information.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Re: [php] tags?

Post by JAM »

It's pretty easy to add custom bb tags within '/adm/index.php'. I know it works with the various of code/php/js tags, but we want buttons damn it! :lol:
It so much easier for users and it's not much work for admins as youre not messing with the templates.

Thanks In advance!
Because I know you want to... You really do... You reaaaaaaaally do...
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: [php] tags?

Post by Weirdan »

JAM wrote:but we want buttons damn it! :lol:
That what I was wondering about: because it's one thing to add a button and quite another - to fix geshi syntax highlighting (which is still broken in some aspects).
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Re: [php] tags?

Post by JAM »

Weirdan wrote:
JAM wrote:but we want buttons damn it! :lol:
That what I was wondering about: because it's one thing to add a button and quite another - to fix geshi syntax highlighting (which is still broken in some aspects).
Of course. The lack of buttons doesn't fix the errors tho, not other way around. We'll still (at least me) use the tags, and hope that eventually the geshi-code is fixed. Until then, the buttons would be gladly accepted. :wink:
I'll manage tho. Just wanted to say it.
Post Reply