Yeah @matenauta I think this topic got a bit off track… I think this topic might be pruned to refer to adding a highlighting button to the floating edit/quote popup
So, I made a theme component Highlighter Composer Button for the very specific and limited purpose of clicking a button in the composer toolbar to insert <mark>this</mark>, and also added a keyboard shortcut Ctrl-H for convenience.
There are 2 other different composer button components which both enable you to insert code on-the-fly to add text background and text colors. These other 2 were not so quick and convenient for me for 2 reasons:
They require manually typing in your colors within the inserted code in order to work.
They don’t always play as nicely with other elements I use in my posts such as scrollable content boxes:
@matenauta sorry about that! I have started spitballing here about ways to improve the composer which I am also finding useful. Personally I am not convinced by the original post suggestion to add a highlighting option alongside quote and fast edit, when selecting text in a post you are reading. It makes more sense to place this feature in the composer, imo.
There are also general suggestions here about different ways text can currently be formatted using markdown, including various theme components that have been created over the years.
Interesting. So are you suggesting that the highlighted text would only be visible to the user, or would it be visible to everybody? So a few people could see everybody’s highlighted text? To me the latter feels chaotic and not so useful. The former I do not think is feasible to implement.
Discourse Shared Edits could use something like this, so when multiple people are editing it is clear who contributed which text. But also of somewhat limited value methinks and potentially chaotic.
Awesome! I have installed this on my personal site and it works well. Nice job!
Exactly, @tobiaseigen ! We use highlighter pens when we are reading and want to quickly highlight portions of text.
I think of this as I use the Fast Edit where I can (in the mini edit window) type in the tags around some text I have selected to edit…
<mark>some text</mark>
Do you think it would work if I make a copy of the Highlighter Theme Component and change the code in the api-setup.js to place the highlighter button (Or press h) in the PluginOutlet