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 have this piece of code:  var s_1 = 'blabla [size=42]the answer[/size] bla bla blupblub'; var s_2 = 'blabla [size=42]the answer[/size] bla bla blupblub [size=32] 32 [/size]';  alert('Test-String:\n' + s_1 + '\n\nReplaced...
I am using this (http://coursesweb.net/javascript/convert-bbcode-html-javascript_cs) as my script for parsing BBCode. I have extended the BBCodes that it can process, however I am encountering a problem when a newline immediately follows an opening t...
I'm creating a small javscript for phpBB3 forum, that counts how much character you typed in.  But i need to remove the special characters(which i managed to do so.) and one BBcode: quote  my problem lies with the quote...and the fact that I don&...
Made some BBcode for phpBB to allow users to post flickr pics with certain tags. Each photo div in the thread needs to be unique, and the images load when the thread is loaded.  When it comes to the unique DIV, I'm stuck for a way to insert the u...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.