![]() |
Highlight BBCode - Highlights text with a yellow box (BB Code)
1 Attachment(s)
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) 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: Code:
<span style="background-color:{option};color:black;">{param}</span> 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. Please mark as installed if you use this. :) Check My Profile for other BB Code enhancements. They work on all versions. Screenshot: https://vborg.vbsupport.ru/attachmen...1&d=1281238379 |
Very nice bb code :D
it would be cool if you put the password bbcode here as well :D |
thanxx man
installed + 5 stars |
That is already the default style highlight code in vb 4. This will do it in templates automatically.
Code:
<span class="highlight">Testing</span> |
Quote:
Quote:
|
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. ;)
|
No offense taken, Thanks for the info.
|
work fine, installed, thx
|
another good one...!!!!
|
Wonderful.
Installed and working 4.1 PL2 |
Hello
Thanks BirdOPrey5 for the MOD, installed and working perfectly in 4.1.7, as always. Sorry for my English. Greetings, Luis. |
Right now it highlights the bottom word.
It would be a nice improvement if it change with the increase font size and not just highlight the bottom of the word. If the font size is increased. How to get all of the entire word highlighted? <-- top to bottom |
Works well on 4.1.8 thanks :)
|
Quote:
|
Upgrading shortly to 4.1.9 :)
@BirdOPrey5 If it's still an issue may I send you the url by PM? I hope your feeling better :) Edit: Done the upgrade to 4.1.9 and the issue remains. |
Quote:
|
You need to put the [hl] tags INSIDE the Size tags...
wrong: PHP Code:
PHP Code:
|
Has anyone noticed that highlight is a built in BBCode in 4.x, but for some reason they didn't include a button for it?
Code is [highlight] |
Well spotted, I wonder why that isn't a button?
Thanks for the info. |
Just too cool. Another fine mini-MOD. BoP5 rocks!! Added to our BBCodes. And, this is so much better than the 'hidden' [hightlight] BBCode in 4.x
|
Quote:
I wonder what else is hidden in the WYSIWYG??? |
I've expanded on this with:
HTML Code:
<span class="highlighter" style="background-color:{option};">{param}</span> .highlighter {padding-top: 2px; padding-left: 5px; border: 2px solid #333333; color: #333333;} You could even make a duplicate (i.e. hl16) and add font size 16px to the CSS by changing .highlighter to .hl16. |
All times are GMT. The time now is 06:05 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|