w8t
|
  |
| Joined: 01 Mar 2012 |
| Total Posts: 560 |
|
|
| 06 Jan 2013 01:49 AM |
I am making a simple chrome extension that parses text into styles: ]b[ Bold ]/b[ ]i[ Italic ]/i[ etc.
|
|
|
| Report Abuse |
|
|
w8t
|
  |
| Joined: 01 Mar 2012 |
| Total Posts: 560 |
|
|
| 06 Jan 2013 01:53 AM |
Update: Parentheses work
(b)Hello!(/b) (i)How are you doing(/i) |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 06 Jan 2013 01:54 AM |
| Roblox forums aren't fancy, ya know? |
|
|
| Report Abuse |
|
|
w8t
|
  |
| Joined: 01 Mar 2012 |
| Total Posts: 560 |
|
|
| 06 Jan 2013 01:58 AM |
It is not just for the forums, it is for everywhere. And it is easy to implement too.
Another test: ({b})Hi({/b}) |
|
|
| Report Abuse |
|
|
w8t
|
  |
| Joined: 01 Mar 2012 |
| Total Posts: 560 |
|
|
| 06 Jan 2013 01:59 AM |
{b}Hi{/b} {i}Lol{/i} {u}Hi{/u} |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 06 Jan 2013 02:01 AM |
| No point to try. Roblox forums sucks. |
|
|
| Report Abuse |
|
|
w8t
|
  |
| Joined: 01 Mar 2012 |
| Total Posts: 560 |
|
|
| 06 Jan 2013 02:04 AM |
Just for fun. Too, I am a noob at JS, so this will sharpen my skills.
Made more tags: {sub} Subscript {/sub} {sup} Superscript {/sup} {scr} alert("This is javascript"); {/scr} |
|
|
| Report Abuse |
|
|
w8t
|
  |
| Joined: 01 Mar 2012 |
| Total Posts: 560 |
|
|
| 06 Jan 2013 02:17 AM |
Added support for CSS. And a few other tags: {code} This is code {/code} {div} This is a section of a document {/div}
{ul} {li}This is{/li} {li}An unordered list{/li} {ul} |
|
|
| Report Abuse |
|
|
w8t
|
  |
| Joined: 01 Mar 2012 |
| Total Posts: 560 |
|
|
| 06 Jan 2013 02:40 AM |
More tags: {hr} //Horizontal rule {br} //Brake {vb} //VBscript |
|
|
| Report Abuse |
|
|
| |
|
w8t
|
  |
| Joined: 01 Mar 2012 |
| Total Posts: 560 |
|
|
| 06 Jan 2013 03:15 AM |
| {b}HTML{/b} is between <>'s while {i}my{/i} markup language is between {}'s, my javascript looks for a specific string and replaces it with HTML. This is, in my opinion, the simplest way to make a markup language |
|
|
| Report Abuse |
|
|
adark
|
  |
| Joined: 13 Jan 2008 |
| Total Posts: 6412 |
|
|
| 06 Jan 2013 03:40 AM |
| You could do it the same as HTML, but AFAIK, Roblox's forums won't let you post it or BBCode. |
|
|
| Report Abuse |
|
|
w8t
|
  |
| Joined: 01 Mar 2012 |
| Total Posts: 560 |
|
|
| 08 Feb 2013 03:40 PM |
To set it straight, I made a Chrome extension that parses {} tags into formatted text.
☁ |
|
|
| Report Abuse |
|
|