Advertisement:

Author Topic: How to highlight some text in forum by using bbcode  (Read 449 times)

Offline danster

  • Jr. Member
  • **
  • Posts: 142
  • Gender: Male
How to highlight some text in forum by using bbcode
« on: April 10, 2019, 12:18:24 PM »
I'm using SMF ver. 2.0.15

Is there a way to highlight some text in the massage box using bbcode
if it is possible pls tell me what is the bbcode to be use for that

Thank you

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,243
Re: How to highlight some text in forum by using bbcode
« Reply #1 on: April 10, 2019, 12:23:40 PM »
You mean like this?

Offline danster

  • Jr. Member
  • **
  • Posts: 142
  • Gender: Male
Re: How to highlight some text in forum by using bbcode
« Reply #2 on: April 11, 2019, 05:17:20 AM »
You mean like this?

NO Like we are highlighting the text by using highlighter pen I mean some color box around the text 

Online Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,477
  • Master of BBC Abuse
Re: How to highlight some text in forum by using bbcode
« Reply #3 on: April 11, 2019, 06:43:50 AM »
You'd have to write a custom BBC for that. Not difficult to do. You can copy an existing example in Subs.php, and just change the styling to suit.

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,705
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: How to highlight some text in forum by using bbcode
« Reply #4 on: April 11, 2019, 09:12:14 AM »
You'd have to write a custom BBC for that. Not difficult to do. You can copy an existing example in Subs.php, and just change the styling to suit.

For a starter, probably best to use a mod like this: http://custom.simplemachines.org/mods/index.php?mod=3864

Then use:

Code: [Select]
<span style="background-color: #FFFF88; padding: 0 2px;">{CONTENT}</span>

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,433
  • Gender: Male
    • Kindred-999 on GitHub
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline njtweb

  • Sr. Member
  • ****
  • Posts: 917