Jump to content

Archived

This topic is now archived and is closed to further replies.

Sharpfox

Php block

Recommended Posts

I was wondering how you guys made the code block

example:
[code]code block[/code]

did you use expressons(i think i spelled this wrong)?

thanks in advance

Share this post


Link to post
Share on other sites
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]I was wondering how you guys made the code block[/quote]
well...we didn't make it first of all

and most likely regex was used to do it

all it is is it replaces stuff between [code] with a formatted div tag
whilst removing the code tag
and then they CSS to make it look prettier

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.