Camen Design Forum

Image / Video Support


Was thinking in *functions.php*.

/* inline formatting:
           -------------------------------------------------------------------------------------------------------------- */
        $text = preg_replace (
                //example: _italic_ & *bold*
                array ('/(?<=\s|^)_(?!_)(.*?)(?<!_)_(?=\s|$)/m',        '/(?<![*\w])\*(?!\*)(.*?)(?<!\*)\*(?![*\w])/'),
                array ('<em>_$1_</em>',                                 '<strong>*$1*</strong>'),


(Leave this as-is, it’s a trap!)

Only the original author or a moderator can append to this post.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn