BBCode: highlight background color of text

Discuss technical problems and features here
User avatar
arthaey
Brown Belt
Posts: 1080
Joined: Sat Jul 18, 2015 9:11 pm
Location: Seattle, WA, USA
Languages: :
EN (native);
ES (adv receptive, int productive);
FR (false beginner);
DE (lapsed beg);
ASL (lapsed beg);
HU (tourist)
Language Log: viewtopic.php?f=15&t=3864&view=unread#unread
x 1675
Contact:

BBCode: highlight background color of text

Postby arthaey » Thu Apr 07, 2016 7:58 pm

bbcode usage:

Code: Select all

[highlight={COLOR}]{TEXT}[/highlight]


HTML replacement:

Code: Select all

<span style="background-color: {COLOR};">{TEXT}</span>


Helpline:

Code: Select all

Highlight: [highlight=color]your text[/highlight]


Example:

Code: Select all

[highlight=yellow]this text is highlighted[/highlight]


[source]
0 x
Posts in: FrenchGermanHungarianSpanish
NaNoWriMo: 10,000 words
Corrections welcome in any language; I prefer an informal register.

User avatar
rdearman
Site Admin
Posts: 7231
Joined: Thu May 14, 2015 4:18 pm
Location: United Kingdom
Languages: English (N)
Language Log: viewtopic.php?f=15&t=1836
x 23125
Contact:

Re: BBCode: highlight background color of text

Postby rdearman » Thu Apr 07, 2016 9:24 pm

arthaey wrote:bbcode usage:

Code: Select all

[highlight={COLOR}]{TEXT}[/highlight]


HTML replacement:

Code: Select all

<span style="background-color: {COLOR};">{TEXT}</span>


Helpline:

Code: Select all

Highlight: [highlight=color]your text[/highlight]


Example:

Code: Select all

[highlight=yellow]this text is highlighted[/highlight]


[source]


Installed, working.
2 x
: 0 / 150 Read 150 books in 2024

My YouTube Channel
The Autodidactic Podcast
My Author's Newsletter

I post on this forum with mobile devices, so excuse short msgs and typos.

User avatar
arthaey
Brown Belt
Posts: 1080
Joined: Sat Jul 18, 2015 9:11 pm
Location: Seattle, WA, USA
Languages: :
EN (native);
ES (adv receptive, int productive);
FR (false beginner);
DE (lapsed beg);
ASL (lapsed beg);
HU (tourist)
Language Log: viewtopic.php?f=15&t=3864&view=unread#unread
x 1675
Contact:

Re: BBCode: highlight background color of text

Postby arthaey » Thu Apr 07, 2016 9:40 pm

Thank you! That was fast! :)
0 x
Posts in: FrenchGermanHungarianSpanish
NaNoWriMo: 10,000 words
Corrections welcome in any language; I prefer an informal register.

User avatar
rdearman
Site Admin
Posts: 7231
Joined: Thu May 14, 2015 4:18 pm
Location: United Kingdom
Languages: English (N)
Language Log: viewtopic.php?f=15&t=1836
x 23125
Contact:

Re: BBCode: highlight background color of text

Postby rdearman » Fri Apr 08, 2016 7:43 am

arthaey wrote:Thank you! That was fast! :)

We aim to please.
1 x
: 0 / 150 Read 150 books in 2024

My YouTube Channel
The Autodidactic Podcast
My Author's Newsletter

I post on this forum with mobile devices, so excuse short msgs and typos.

abusomaia
Posts: 1
Joined: Sat Aug 25, 2018 6:20 pm
Languages: arabic , english

Re: BBCode: highlight background color of text

Postby abusomaia » Sat Aug 25, 2018 6:22 pm

[highlight={green}]{thank u}[/highlight]
0 x

User avatar
rdearman
Site Admin
Posts: 7231
Joined: Thu May 14, 2015 4:18 pm
Location: United Kingdom
Languages: English (N)
Language Log: viewtopic.php?f=15&t=1836
x 23125
Contact:

Re: BBCode: highlight background color of text

Postby rdearman » Fri Jul 02, 2021 1:44 pm

abusomaia wrote:[highlight={green}]{thank u}[/highlight]

I didn't see the original post. But to get this to work you have to use the html color code for green. "highlight=#008000"
0 x
: 0 / 150 Read 150 books in 2024

My YouTube Channel
The Autodidactic Podcast
My Author's Newsletter

I post on this forum with mobile devices, so excuse short msgs and typos.

User avatar
Gordafarin2
Orange Belt
Posts: 161
Joined: Wed Aug 22, 2018 10:53 am
Languages: English (N)
Current focus: Mandarin (A2), Italian (A2)
Maintaining: Persian (B2), Esperanto (B2), Spanish (rusty B1-2)
Dabbled: ASL, French
Language Log: https://forum.language-learners.org/vie ... 15&t=17156
x 557
Contact:

Re: BBCode: highlight background color of text

Postby Gordafarin2 » Fri Jul 02, 2021 2:20 pm

Wow, this is very cool indeed. Thanks to you both!

By the way abusomaia, it does accept colour names, not just hex codes, but you shouldn't use curly brackets. Like so:

Code: Select all

[highlight=yellow]very cool[/highlight]
0 x
Persian... 10 novels: 4 / 10

Mandarin...
4000 words: 4000 / 4000 / 2000 characters: 1640 / 2000

she/her


Return to “Technical Support and Feature Requests”

Who is online

Users browsing this forum: No registered users and 2 guests