SRL Archive - Extensions

BBCode Converter


Clarity

2015-03-30 04:58:52

BBCode Converter
Version 1.0

This extension allows you quickly convert script code to colorful forum BBCode for when you don't wish to use
 tags.


Installation

  1. Download the extension.
  2. Paste it into C:\Simba\Extensions\
  3. Open Simba and go to View -> Extensions.
  4. Enable the bbcode.sex extension.
  5. The "BBCode Conversion" tool will appear within the Tools menu.
  6. Enter your script code into the text box.
  7. Click on Convert to BBCode. Copy the text and paste into your forum thread!
Example

Input Code:

Output BBCode:

Forum Thread Preview:

function ogl.getClientDimensions(var oglClientWidth, oglClientHeight: int32): boolean;
function ogl.getClientHeight(): int32;
function ogl.setDefaultClientHeight(funcClientHeight: int32): int32;
function ogl.getClientWidth(): int32;
function ogl.setDefaultClientWidth(funcClientWidth: int32): int32;


This tool is best used for non-script applications such as posting function lists (example). It can handle entire scripts, but has a few spacing and coloring flaws. For posting scripts, you should probably be using
 tags anyway.

[SIZE=4][b]Extension Download: [ATTACH]25414[/ATTACH] (v1.0)[/b][/SIZE]

Credits:
[MENTION=1383]nielsie95[/MENTION] for extension form code.
[MENTION=102053]Obscurity[/MENTION], for the original AHK replaceRegExpr code.

Obscurity

2015-03-30 06:43:14

Oooooh suuuuure. Why don't you just post the fishing and slayer bots too, huh huh huh?

Hehe JK mate. Love it! :-P.

Clarity

2015-03-30 13:14:52

Your turn for version 2.0! :p

Decided I won't really work on this further, since I don't know why one wouldn't post entire scripts within Simba tags.