Back to vBulletin 4.x Add-ons

Highlight BBCode - Highlights text with a yellow box (BB Code)
Mod Version: 1.00, by BirdOPrey5

vB Version: 4.0.x Rating: (10 votes - 4.90 average) Installs: 55
Released: 08 Aug 2010 Last Update: Never Downloads: 0
Not Supported Re-usable Code Translations  

This is a simple bbcode to highlight text with a yellow box. You can of course change the color to your needs.

This has been confirmed working in the latest releases of IE, FF, Chrome, Safari, and Opera.

Demo: http://www.juot.net/forums/showthread.php?p=845388&styleid=1#post845388

Add a new BBCode

Title: Highlight
BB Code Tag Name: hl
Replacement:
Code:
<span style="background-color:yellow;color:black;">{param}</span>
OR
Replacement:
Code:
<span class="highlight">{param}</span>
(Thanks to Boofo who pointed this out, you may want to use the second option if you have a custom skin, it may look better. Best to try both and see which you prefer.)
Example: [hl]This is a highlight test[/hl]
Description: This highlights selected text.
Use Option: No
Button Image: (optional)

Remove Tag If Empty: Yes
All Disable Options: No

The above implementation fixes the color of the highlight at yellow and the text black for easy use. If you prefer you may also install it with a variable highlight color. If you prefer to have the user choose the highlight color then instead add the following:

Title: Highlight
BB Code Tag Name: hl
Replacement:
Code:
<span style="background-color:{option};color:black;">{param}</span>
Example: [hl="cyan"]This is a highlight test[/hl]
Description: This highlights selected text.
Use Option: Yes
Button Image: (optional)

Remove Tag If Empty: Yes
All Disable Options: No

You can use standard color names in the option such as red, blue, green, yellow, etc...
You can also use hex color codes preceded by the # sign for exact colors, such as #0000FF
http://www.december.com/html/spec/colorhex.html

Please mark as installed if you use this.

Check My Profile for other BB Code enhancements. They work on all versions.

Screenshot:

Download

No files for download.

Similar Mods

BB Code Enhancements Highlight BBCode - Highlights text with a yellow box (BB Code) vBulletin 3.8 Add-ons

vblts.ru supports vBulletin®, 2022-2024