Computer Science Canada BBCode syntax highlighting |
Author: | Bruski [ Tue Oct 07, 2003 10:45 pm ] |
Post subject: | 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 |
Author: | Amailer [ Tue Oct 07, 2003 10:57 pm ] |
Post subject: | |
show_source() type? i got a phpbb code on my forum ([php] [/php]) EDIT: NVM FOUND IT! http://phpbbhacks.com/viewhack.php?id=181 thats the main part of it i think (THIS IS FOR PHPBB FORUM) |
Author: | Bruski [ Tue Oct 07, 2003 11:18 pm ] |
Post subject: | |
how would i implament it with my forums..that i created |
Author: | Amailer [ Tue Oct 07, 2003 11:34 pm ] |
Post subject: | |
you created the whole forum your self? or are you using a forum like this one? phpbb? |
Author: | Bruski [ Tue Oct 07, 2003 11:39 pm ] |
Post subject: | |
ooo all by myself...simple but effective none the less |
Author: | Amailer [ Tue Oct 07, 2003 11:41 pm ] |
Post subject: | |
Ok, well it depends on how you write your code (got an i.e??) |
Author: | Bruski [ Tue Oct 07, 2003 11:48 pm ] |
Post subject: | |
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 |
Author: | Bruski [ Tue Oct 07, 2003 11:51 pm ] |
Post subject: | |
damn wont display the code http://bruski.hell-yeah.net/forums/index.phpsTry here |
Author: | Tony [ Wed Oct 08, 2003 12:31 am ] |
Post subject: | |
I'm not sure how [code] works on phpBB, but my guess would be that it just places it in a table and puts <font> tags around it. Shouldn't be too hard to implement. |
Author: | PaddyLong [ Wed Oct 08, 2003 12:36 pm ] | ||||
Post subject: | |||||
well... let's see ..
|
Author: | Amailer [ Wed Oct 08, 2003 5:45 pm ] |
Post subject: | |
they also give the tag an sid [php:1:cd70b2d9c1] or something like that (when saved in the database) |
Author: | Dan [ Wed Oct 08, 2003 10:35 pm ] | ||||||
Post subject: | |||||||
PaddyLong wrote: well... let's see ..
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
|
Author: | PaddyLong [ Thu Oct 09, 2003 10:57 am ] |
Post subject: | |
if I wanted it to work as html I wouldn't have put it in the code tag. |
Author: | Dan [ Thu Oct 09, 2003 11:08 am ] |
Post subject: | |
oh, ok i see what you did, lol. now dont i look dum ![]() |
Author: | PaddyLong [ Thu Oct 09, 2003 2:56 pm ] |
Post subject: | |
![]() ![]() |