[php] tags?
Moderator: General Moderators
[php] tags?
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?
I noticed they disappeared when they updated the boards too...for now...I just use *code* tag and then manually replace with *php*
Re: [php] tags?
You mean there's no button to adddayyanb wrote:They don't show up with any formatting for me. Is there some sort of setting to make them do so?
Code: Select all
tags, or they do not have any effect when added manually?- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: [php] tags?
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.
Ok, I am wrong. You can use
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'); 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.Re: [php] tags?
But by some fortunate coincidence (bug?)Everah wrote:There is only one tag: [code]. To make it php code, use [code=php].
Code: Select all
, [js] and [sql] works as well.- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: [php] tags?
Sorry weirdan, I just edited my last post. I think we set it up to do what you are seeing.
Re: [php] tags?
Hmm they seem to be showing up properly for me now. Thanks for the information.
Re: [php] tags?
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!
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...
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...
Re: [php] tags?
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).JAM wrote:but we want buttons damn it!![]()
Re: [php] tags?
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.Weirdan wrote: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).JAM wrote:but we want buttons damn it!![]()
I'll manage tho. Just wanted to say it.