Jump to content


Photo

Php block


  • Please log in to reply
1 reply to this topic

#1 Sharpfox

Sharpfox
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 01 April 2006 - 07:06 PM

I was wondering how you guys made the code block

example:
code block

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

thanks in advance



#2 Zane

Zane
  • Administrators
  • Advanced Member
  • 4,134 posts

Posted 01 April 2006 - 07:11 PM

[!--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=auto:0] with a formatted div tag
whilst removing the code tag
and then they CSS to make it look prettier

btn_donate_SM.gif Want to thank me? Contribute to my PayPal piggy-bank
 

172938.png




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users