The Arcive of vBulletin Modifications Site. |
|
Highlight BBCode - Highlights text with a yellow box (BB Code) Details »»
|
|||||||||||||||||||||||||||
|
Highlight BBCode - Highlights text with a yellow box (BB Code)
Developer Last Online: Aug 2023
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. Add a new BBCode Title: Highlight BB Code Tag Name: hl Replacement: Code:
<span style="background-color:yellow;color:black;">{param}</span>
Replacement: Code:
<span class="highlight">{param}</span>
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>
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 Click here for common hex color codes. Please mark as installed if you use this. ![]() Check My Profile for other BB Code enhancements. They work on all versions. Screenshot: Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Very nice bb code
![]() it would be cool if you put the password bbcode here as well
|
|
#3
|
||||
|
||||
|
thanxx man
installed + 5 stars |
|
#4
|
||||
|
||||
|
That is already the default style highlight code in vb 4. This will do it in templates automatically.
Code:
<span class="highlight">Testing</span> |
|
#5
|
||||
|
||||
|
Quote:
I see that highlight is used when searching and such but I don't see any bb code implementation of it. If you're suggesting I use the code you posted as a replacement it's certainly just as valid but my code is more easily editable for the user to change the highlight color if so inclined. It may even be a smart idea so as not to confuse it with text highlighted by vBulletin automatically. |
|
#6
|
||||
|
||||
|
I was just letting you know it was already there, that's all. I didn't know if you knew it or not. I use the default highlight code for my Thread Starter in Postbit hack, that is how I knew. No offense meant, sir.
|
|
#7
|
||||
|
||||
|
No offense taken, Thanks for the info.
|
|
#8
|
|||
|
|||
|
work fine, installed, thx
|
|
#9
|
|||
|
|||
|
another good one...!!!!
|
|
#10
|
|||
|
|||
|
Wonderful.
Installed and working 4.1 PL2 |
![]() |
|
|