Highlighting for our PHP in BB code here! [Available now]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

would be cool to make it a frameset with the code "converter" in the top frame and devnet at the bottom.

that way you wouldn't need to swap between windows or GUI apps.

I'll work it up :P

Burr
User avatar
smpdawg
Forum Contributor
Posts: 292
Joined: Thu Jan 27, 2005 3:10 pm
Location: Houston, TX
Contact:

Post by smpdawg »

Burrito wrote:would be cool to make it a frameset with the code "converter" in the top frame and devnet at the bottom.

that way you wouldn't need to swap between windows or GUI apps.

I'll work it up :P

Burr
Do it. :) I am loving this thing already.
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

test test

<?
$praise = 'You are my god';

if ($god == $you){
echo $praise;
}else{
echo 'not my god, sorry';
}
?>
Last edited by shiznatix on Wed Mar 02, 2005 7:44 pm, edited 3 times in total.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

It's a good idea but i'm not sure I'd like it personally. I could make a mod for it or something if people wanted it. LOL. This started off as a personal project since I was starting to really miss seeing those PHP colors :lol:
BTW... if you gonna edit it, for me to continue with, try and keep it to one PHP file only. Notice how the iframe calls the same script with a different result. Keep the ideas coming :-D
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Shiz... you dont use code tags... it's all in the BBCode it outputs. Just paste it in. It wont work if it's interupted with other BB tags such as
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

ya i know i was messing around with it trying to get it to work. what do i gotta do on my side? i didnt quite figure out how to use this

EDIT: o wow ok i see now, ehhe i didn't know thats how it was being done. thanks for the pm guy who made this
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

OK for anybody who's not sure on using it.

Get the latest code from here and save it as .php

viewtopic.php?t=31055&highlight=#161896

then run it in localhost to view the web interface.

All you do when you run it, is choose a php file to upload or paste the code into the box. It spits out something horribly messy but if you just paste the horribly messy code into a new post it comes out in color. Beware. Any php code must be opened by <?php and closed by ?> in this unfinished version or it wont highlight.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

smpdawg wrote:
Burrito wrote:would be cool to make it a frameset with the code "converter" in the top frame and devnet at the bottom.

that way you wouldn't need to swap between windows or GUI apps.

I'll work it up :P

Burr
Do it. :) I am loving this thing already.
Ok I actually do think that's a good idea, just so long as the frames can be resized so that one can be in focus when the other is not in use etc...

Go for it :-) One PHP file though... remember :-D
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

hmm...well my plan was to create a frameset as I mentioned above and then create a record in my host file for forums.devnetwork.net to point to my local machine so that if I clicked a link from my email, it would open the frameset with all the goods ready to roll. HOWEVER, it looks like forums.devnetwork.net is NOT ip based hosting so there'd be no way to send the main frame to the site UNLESS...someone smarter than I in here can tell me how to spoof host headers to the ip address so it *thinks* it's the real mccoy?

anyone, anyone...Beuler, anyone?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

All websites have an IP. They're on servers so they have to.

Hold on I'll see if I can check it.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

whoa..... we have the PHP tags functioning, there are just some problems with IE and CSS... stupid IE.

Should be available for use shortly.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

yes but NOT all web sites are IP based hosting...meaning there can be more than one site on the same IP.

devnet appears to be that way.

it needs the full URL to resolve to anything usuable, just typing in the ip doesn't cut it:

ie http://63.247.70.254/viewtopic.php?p=161983#161983
Last edited by Burrito on Wed Mar 02, 2005 8:04 pm, edited 1 time in total.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

Phenom wrote:whoa..... we have the PHP tags functioning, there are just some problems with IE and CSS... stupid IE.

Should be available for use shortly.
well then...problem solved :P
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

63.247.70.254 brings up forums.devnetwork.net which is what I was expecting when i traced it.

Confused :? Never mind
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

d11wtq wrote:63.247.70.254 brings up forums.devnetwork.net which is what I was expecting when i traced it.

Confused :? Never mind
ok I edited my post and added some more after the last octet...what it's doing when you click just the ip is some form of redirect to repoint it to the fqdn. That won't work with a modfied host file though because it will try to resolve to the local machine...

try the link I edited above and you'll see what I mean.
Post Reply