Camen Design Forum

Delete

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

To delete this post you must be either the original author or a designated moderator.
The content of the post will be removed but the name and date will remain.

  • The post will be removed completely from the thread, rather than blanked
  • Only posts on the last page of the thread can be removed completely (so as to not break permalinks)

RE[2]: Image / Video Support

k1ngp1n

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>'),
        $text);
%

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn