Advertisement
jargon

Doors / Codebox

Apr 29th, 2022
1,695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.12 KB | None | 0 0
  1.     // codebox
  2.     $caption = preg_replace
  3.     (
  4.         '/[\`]{3}(.*?)[\`]{3}/s',
  5.         '<div class=\'codebox\'>$1</div>',
  6.         $caption
  7.     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement