
-----------------------------------
Bruski
Tue Oct 07, 2003 10:45 pm

BBCode syntax highlighting
-----------------------------------
i wrote a simple code like the one that is on this website to hightlight the syntax...is there anyway to do it like a .phps file...cuz i built a forum and i want to give the users the power to post code , but it would be nice if it would be nicly higlighted...any suggesitons

-----------------------------------
Amailer
Tue Oct 07, 2003 10:57 pm


-----------------------------------
show_source() type?
i got a phpbb code on my forum (EDIT: NVM FOUND IT!
http://phpbbhacks.com/viewhack.php?id=181


thats the main part of it i think (THIS IS FOR PHPBB FORUM)

-----------------------------------
Bruski
Tue Oct 07, 2003 11:18 pm


-----------------------------------
how would i implament it with my forums..that i created

-----------------------------------
Amailer
Tue Oct 07, 2003 11:34 pm


-----------------------------------
you created the whole forum your self?
or are you using a forum like this one? phpbb?

-----------------------------------
Bruski
Tue Oct 07, 2003 11:39 pm


-----------------------------------
ooo all by myself...simple but effective none the less

-----------------------------------
Amailer
Tue Oct 07, 2003 11:41 pm


-----------------------------------
Ok, well it depends on how you write your code (got an i.e??)

-----------------------------------
Bruski
Tue Oct 07, 2003 11:48 pm


-----------------------------------
what kind of example do you need... =[ ...i just want it to do the same as the code thing in this forum does...i modified a script i found but it wont highlight it just formats it into a diff text fieild

-----------------------------------
Bruski
Tue Oct 07, 2003 11:51 pm


-----------------------------------
damn wont display the code http://bruski.hell-yeah.net/forums/index.phpsTry here

-----------------------------------
Tony
Wed Oct 08, 2003 12:31 am


-----------------------------------
I'm not sure how [code] works on phpBB, but my guess would be that it just places it in a table and puts  tags around it. Shouldn't be too hard to implement.

-----------------------------------
PaddyLong
Wed Oct 08, 2003 12:36 pm


-----------------------------------
well... let's see .. test



 
          Code:
        
        
          test
        



-----------------------------------
Amailer
Wed Oct 08, 2003 5:45 pm


-----------------------------------
they also give the tag an sid
[php] or something like that (when saved in the database)

-----------------------------------
Dan
Wed Oct 08, 2003 10:35 pm


-----------------------------------
well... let's see .. test



 
          Code:
        
        
          test
        



if you where trying to get html code to acualy wrok in 2nd thing there it did not b/c i moded code tag to not run/load any codes in a code tag (makes sence to me).

this is what the 1st one whould look like in html

 test


-----------------------------------
PaddyLong
Thu Oct 09, 2003 10:57 am


-----------------------------------
if I wanted it to work as html I wouldn't have put it in the code tag.

-----------------------------------
Dan
Thu Oct 09, 2003 11:08 am


-----------------------------------
oh, ok i see what you did, lol. now dont i look dum  :evil:

-----------------------------------
PaddyLong
Thu Oct 09, 2003 2:56 pm


-----------------------------------
;) misunderstandings can do that :P
