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...
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 recently came across this BBCode (Bulletin Board Code) editor named SCEditor. It's the first one that I found so I started using this one, but i am not really familiar with parsers and stuff. I need it for showing news on my website. So basical...
I am wanting to add my own bbcodes to a wygiwys bbcode editor. The issue I am having is that it can find the bbcode and change to html, but it cant the other way. I am not used to writing safe strings in javascript so was hoping someone could point t...
I'm using the newest version of the chrome browser on a mac book air with the newest OS. I'm trying to create a BBcode parser in javascript. I can easily parse one line code such as [b]a[/b] but when it's multiple lines, it doesn't fi...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.