BBCode "hightlight" mark-element

phpBB3 BBCodes.
Post Reply
Team Member
Posts: 506
Joined: Sun Oct 20, 2024 10:14 am
    Windows 7 Firefox

BBCode "hightlight" mark-element

Post by Co-Admin »

New perceptions and please read more under w3.org:
https://www.w3.org/TR/2011/WD-html5-aut ... ement.html

The BBCode "hightlight" could be used with the mark element; The CSS already includes the mark element in normalize.css [phpBB], which exists in line 145: e.q. 3.3.13, 3.3.14, *)3.3.15

Code: Select all

mark {
	background: #ff0;
	color: #000;
}

=====
BBCode usage

Code: Select all

[hightlightmark]{TEXT}[/hightlightmark]

HTML replacement

Code: Select all

<mark>{TEXT}</mark>
Help line

Code: Select all

Mark text and highlight it with highlightmark [hightlightmark]TEXT[/hightlightmark]
Tests, example ...-, without guarantee, since the correct input, the application plays a major role (textual spaces). ;) :!:

Code: Select all

At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no [hightlightmark]sea takimata[/hightlightmark] sanctus est Lorem ipsum dolor sit amet.
Result:
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.



*) Edit phpBB-Version
Last edited by Co-Admin on Wed Jan 22, 2025 11:28 am, edited 2 times in total.
"We all have two lives, the second begins when we realize we only have one." – Confucius
Team Member
Posts: 506
Joined: Sun Oct 20, 2024 10:14 am
    Windows 7 Firefox

Re: BBCode "hightlight" mark-element

Post by Co-Admin »

Code: Select all

Lorem ipsum dolor sit amet, [hightlightmark]consetetur sadipscing elitr[/hightlightmark], sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
Result:
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
"We all have two lives, the second begins when we realize we only have one." – Confucius
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest