Hi,
In my website, it is quite common that people surround parts of text by
slashes. And it happens that they want the inner text to be bold, but the
result always turns out to become a comment, since the used syntax is
/**something**/. Therefore, I played a bit with the comment regex, non
capturing groups, look ahead and look behing assertions, and I finally
found something that only works for proper comments:
MarkUp('pre', 'comments',
'/(?<=[^\/]|^)\/\*[^\*](.*?)[^\*]\*\/(?=[^\/]|$)/se', ''); // /*comments*/
but neither //*comments*// nor /**comments**/
I just wanted to share this in case you thought it would do no harm in the
future revision of Boltwire. I am integrating it in my config.php file
anyway.
Cheers,
Tiffany
--
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/d/optout.