Currently i'm parsing bbcode server side but i'd like to show a preview just like this site does.  If I process the bbcode serverside using ajax it's a bit laggy, so i thought doing it client side, to just show the preview.  Do you guys...
I have coded a Javascript bbcode similar to the one I'm using to write this message. It also incorporates a live preview box like the one I see below. The only problem I'm facing at the moment is that some nested bbcode is not parsing.  For e...
I have regex patterns in PHP  $s = preg_replace("#\[URL\=(.*)\](.*)\[\/URL\]#Ui", "<a href=\"$1\" target=\"_blank\">$2</a>", $s); $s = preg_replace("#\[CODE\=(.*)\](.*)\[\/CODE\]#Uis", "<pre...
Text = "I have this text [b] and want this part to be bold [/b]."  How can I replace the [b] and [/b] with strong html tag  so that the output is => I have this text and want this part to be bold.  I tried using lodash replace like this bu...
I'm working on a BBcode editor, and was wondering how to toggle tags on selection using Javascript (similar to how the text editing menu works on StackOverflow).  Example:  Textarea  Lorem ipsum dolor sit amet.   If you select the text 'ipsum...
I wonder if there is a way to use ungreedy matching in JavaScript? I tried the U modifer, but it doesn't seem to work.  I want to write a small BBCode parser in JavaScript, but without ungreedy matching it isn't possible (at least as far as I...
I'm working on a bbcode example, but i cannot seem to get it to work. the regex matches all the [img] tags and make it all look wierd. I'm trying to have the option to click on the image and get it full size and when I do, everything becomes...
So I have this function that I created that replaces special characters that are inside of a string. The main intent was to replace those special characters that were inside of the BBCode tag ([code=any]my code that I want to show[/code]), but at the...
I need a simple BBcode editor that could be integrated into an angular app. Something very-very basic like this one. But I could not find such a thing anywhere. The best thing I found is markItUp plugin for jQuery, but when I tried to integrate it i...
I am working in Javascript and I have the following regex:  [img]([a-z0-9\-\./]+[^"\' ]*)[/img]/g   When I have the following text (with space separating between the 2 groups):  [img]http://www.bla.com[/img] [img]http://www.bla.com[/img]   th...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.