BirdOPrey5
08-07-2010, 10:00 PM
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: here. (http://www.juot.net/forums/showthread.php?p=845388&styleid=1#post845388)
Add a new BBCode
Title: Highlight
BB Code Tag Name: hl
Replacement:
<span style="background-color:yellow;color:black;">{param}</span>
Example: This is a highlight test
Description: This highlights selected text.
Use Option: No
Button Image: (optional) https://vborg.vbsupport.ru/external/2010/08/53.jpg
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:
<span style="background-color:{option};color:black;">{param}</span>
Example: This is a highlight test
Description: This highlights selected text.
Use Option: Yes
Button Image: (optional) https://vborg.vbsupport.ru/external/2010/08/53.jpg
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
Click here for common hex color codes. (http://www.december.com/html/spec/colorhex.html)
Please mark as installed if you use this. :)
Check My Profile (https://vborg.vbsupport.ru/member.php?u=258922) for other BB Code enhancements. They work on all versions.
Screenshot:
https://vborg.vbsupport.ru/external/2010/08/53.jpg
This has been confirmed working in the latest releases of IE, FF, Chrome, Safari, and Opera.
Demo: here. (http://www.juot.net/forums/showthread.php?p=845388&styleid=1#post845388)
Add a new BBCode
Title: Highlight
BB Code Tag Name: hl
Replacement:
<span style="background-color:yellow;color:black;">{param}</span>
Example: This is a highlight test
Description: This highlights selected text.
Use Option: No
Button Image: (optional) https://vborg.vbsupport.ru/external/2010/08/53.jpg
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:
<span style="background-color:{option};color:black;">{param}</span>
Example: This is a highlight test
Description: This highlights selected text.
Use Option: Yes
Button Image: (optional) https://vborg.vbsupport.ru/external/2010/08/53.jpg
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
Click here for common hex color codes. (http://www.december.com/html/spec/colorhex.html)
Please mark as installed if you use this. :)
Check My Profile (https://vborg.vbsupport.ru/member.php?u=258922) for other BB Code enhancements. They work on all versions.
Screenshot:
https://vborg.vbsupport.ru/external/2010/08/53.jpg