Programmable button issue

I’ve been using Anki for a long time. The mobile version of Anki has programmable buttons. With these, I can instantly perform actions like coloring, changing the background color, and changing the font style using CSS and style formatters, all with a single button press.

However, I haven’t seen this feature in the web or desktop versions. Do I need to use an external plugin for this?

For example, I’ve included an example for German below. Here, I want to assign text highlighting, italics, and color structures to a single key, allowing me to highlight in both the answer and the question with just one press of that key.

So I want to make an assignment in the following way:

<span style="color: rgb(0, 0, 0); background-color: rgb(170, 255, 127);"><i>myword-will-be-here</i></span>

Is there a practical way I can do this?