custom button to add predefined text to marked word

asked 2020-01-15 11:56:59 +0100

zm23 gravatar image

updated 2020-01-15 11:57:42 +0100

Is it possible to create in Calc and Writer custom button / icon that when I mark a word it will add in front of that word some predefined text and at the back of this word also some predefined text?

For example, I have a word: "question" in a sentence: "ask a question interesting to this community"

I want to change it like this:

ask a {{c1::question}} interesting to this community

I know I can format this word and use find and replace option but I wonder if I can prepare myself such button / icon because I need to use it quite often, so I want to minimize the number of repeated actions.

edit retag flag offensive close merge delete

Comments

Deleted my answer and can't provide a new one, since your comment to my now deleted answer made it completely incomprehensible for me. I don't understand what you want to achieve, if AutoText is not what helps you, though it does exactly what you wrote above:

Autotext entry1: `question` -> `{{c1::question}}`  
Autotext entry2: `interesting` -> `{{c1::interesting}}`  
...
Autotext entryN: `wordN` -> `{{c1::wordN}}`
Opaque gravatar imageOpaque ( 2020-01-15 18:16:55 +0100 )edit

I don't think this is what I expect. This way I would have to define thousands of autotext entries.

zm23 gravatar imagezm23 ( 2020-01-15 18:52:42 +0100 )edit