News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Highlight tags

Started by Dav999, January 29, 2014, 08:02:02 PM

Previous topic - Next topic

Dav999

Link to Mod

Highlight tags


With this mod, you can highlight text in posts on your forum as if you used a marker! To avoid confusion: this mod is not for syntax highlighting.

You can use [highlight]Text[/highlight] to highlight the text between the tags in yellow, or [highlight=(color)]Text[/highlight] for any other color.



Changelog
v1.2 (2016-08-23)
* Updated the regex for the rgb() syntax to allow values from 0-255 instead of 0-999
* Updated the early support for SMF 2.1
* Changed license from CC0 to the Unlicense
v1.1 (2014-01-31)
* Added support for SMF 1.1.19 (and 2.1)
v1.0 (2014-01-24)
* Initial release




License:

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <http://unlicense.org/>

Dav999

This mod is available again :)

br360

Nice mod; thanks. Now when I use the highlight tag for news items, people may actually read them. ;)

Dav999

#3
Thanks. :)

Currently I'm planning to implement:

  • Support for SMF 1.1 done
  • A setting in the admin area to set the default highlighting color
  • A button/list for it on the post page

Nicholaus

Hi David, good to see a good looking mod.

Dav999

Thanks!

* Dav999 is wondering how you know my full first name

I've added support for SMF 1.1 now, and it also works on my testing installation of SMF 2.1 alpha, so I've added support for that as well! 8)

Arantor

I think it's an educated guess...

Dav999

Quote from: Sir Cumber-Patcher on January 31, 2014, 01:22:45 PM
I think it's an educated guess...

It could also have been Dave or something... :P

GamePersia

Nice one,...
But where is the icon for this ??
or we have to add this tag by writing it ?
Kindly gide for icon !!
:(

Arantor

The mod does not add an icon. That is probably a good thing otherwise some people might go overboard with formatting.

Also, please do NOT use bold everywhere, it is rather hard to read and annoys people (me included)

GamePersia

Quote from: Sir Cumber-Patcher on February 02, 2014, 10:18:34 PM
The mod does not add an icon. That is probably a good thing otherwise some people might go overboard with formatting.

Also, please do NOT use bold everywhere, it is rather hard to read and annoys people (me included)
Oh,..ok..
will be careful from next time !!  :)

Dav999

Quote from: GamePersia on February 02, 2014, 10:02:13 PM
Nice one,...

Thanks :)

I was thinking of adding a setting whether to show a dropdown with highlight colors or not, but this might set it apart from the rest of the BBCode which do not have options to show/hide their button without also enabling/disabling the feature. It still wouldn't hurt though.

Also, I'm wondering where to place a dropdown if I'm going to do that. It would probably be too big to fit on either line so maybe I should just make it one button which inserts the code for the default color.

Steve

Sweet! Works great! Well done! :D
DO NOT pm me for support!

Dav999


Steve

Quote from: Dav999 on February 03, 2014, 09:56:42 AM... maybe I should just make it one button which inserts the code for the default color.

That would be cool. :)
DO NOT pm me for support!

kamili34

Would be cool with buuton. :)

Rain Forest


Majik_Imaje

                 can you give an example of how to add a different color ? NOTHING WORKS FOR ME

Steve

[highlight=#0682aa]Text here[/highlight] or [highlight=blue]Text here[/highlight], etc.

Leave out the parenthesis as shown in the first post. :)
DO NOT pm me for support!

Majik_Imaje

Quote from: Dav999 on January 31, 2014, 01:09:18 AM
This mod is available again :)

I can get the yellow to work very easily but could you please give  me an example to use any other color. I have tried and  tried to put the  rgb values inside the parenthesis but nothing ever happens.


[highlight]=(25,  225,  50)[ My text goes here [/end of tag

Advertisement: