TeX - LaTeX Asked by VBP on July 22, 2021
You probably know that if you highlight text with cursor, and push Ctrl+B, you can get
textbf{highlighted text}
instead of what was before:
highlighted text
I would like to create a keyboard shortcut similarly for the following:
colorbox{pink}{highlighted text}
I am using TeXStudio.
I think the closest thing you can do is to set up a macro (Macros
>Edit Macros...
).
You can either select one of several keyboard shortcuts (here Ctrl+M+C),
or an abbreviation that, when you type it like a regular command, shows up in the auto-completion window marked with '(Usertag)'.
Highlighted text will be inserted at the marker for curser position %|
.
Answered by schoekling on July 22, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP