A userscript that enhances text formatting on Blender.Community by allowing quick insertion of keyboard shortcuts, mouse buttons, and other UI elements using simple text selection and hotkeys.
Credits of the original stackexchange script to CoDEmanX and iKlsR: Button to insert <kbd><kbd/> for users - Blender Meta Stack Exchange.
Blender.Community adaptation made by Lauloque
- Better Italic and Bold formatting with ⎈ CtrlI and ⎈ CtrlB
- Converts
editinto[edit](./edit), a clickable link for a post's author to edit their own post. - Automatically formats keyboard shortcuts
E.G.ctrl alt sconverts to[[⎈ Ctrl]] [[⎇ Alt]] [[S]]and looks like this: ⎈ Ctrl⎇ Alts);
Supports function keys, navigation keys, mouse buttons, and OS keys; - Works in all textareas on Blender.Community, including Right Click Select.
- Install a userscript manager:
- Tampermonkey (Recommended)
- Violentmonkey (Alternative)
- Click this link to install the script.
- Done! The script will now automatically format text when you select words and press
Ctrl+Y.
Warning
Why not the infamous Greasemonkey script manager?
While Greasemonkey was popular for its pioneering features in customizing web pages since the early 2000s ;
The major (and breaking) API changes in 2015 and way slower updates, lead to limited support for features like the safe mode @grant none and certain DOM manipulations. Many userscripts don't fonction on Greasemonkey without major rewrites, and Greasemonkey's updates are infrequent. Hence many authors recommend against using it.
- Select the text you want to format inside a Blender.Community textarea.
- Press ⎈ CtrlY to apply formatting.
- The text will be replaced with properly formatted elements.
This script will automatically update when a new version is released. To manually check for updates:
- Go to your userscript manager (Tampermonkey/Violentmonkey).
- Click on "Check for Updates".
Want to contribute? Fork the repository on GitHub:
🔗 Blender.Community.Textformatter
The script transforms selected text into special formatting elements. Below is a list of all supported conversions, along with a preview of the end result.
| Input | Output | Preview |
|---|---|---|
ctrl |
[[⎈ Ctrl]] |
⎈ Ctrl |
alt |
[[⎇ Alt]] |
⎇ Alt |
shift |
[[⇧ Shift]] |
⇧ Shift |
tab |
[[↹ Tab]] |
↹ Tab |
capslock |
[[⇪ Caps Lock]] |
⇪ Caps Lock |
delete |
[[⌦ Delete]] |
⌦ Delete |
enter |
[[⏎ Enter]] |
⏎ Enter |
backspace |
[[⟵ Backspace]] |
⟵ Backspace |
printscreen |
[[⎙ Print Screen]] |
⎙ Print Screen |
| Input | Output | Preview |
|---|---|---|
f1 |
[[F1]] |
F1 |
f2 |
[[F2]] |
F2 |
f3 |
[[F3]] |
F3 |
f4 |
[[F4]] |
F4 |
f5 |
[[F5]] |
F5 |
f6 |
[[F6]] |
F6 |
f7 |
[[F7]] |
F7 |
f8 |
[[F8]] |
F8 |
f9 |
[[F9]] |
F9 |
f10 |
[[F10]] |
F10 |
f11 |
[[F11]] |
F11 |
f12 |
[[F12]] |
F12 |
| Input | Output | Preview |
|---|---|---|
lmb |
[[Left 🖱️]] |
Left 🖱️ |
rmb |
[[Right 🖱️]] |
Right 🖱️ |
mmb |
[[Middle 🖱️]] |
Middle 🖱️ |
wheel |
[[Wheel 🖱️]] |
Wheel 🖱️ |
| Input | Output | Preview |
|---|---|---|
win |
[[🧰 Win]] |
🧰 Win |
super |
[[⌘ Super]] |
⌘ Super |
meta |
[[◆ Meta]] |
◆ Meta |
command |
[[⌘Cmd]] |
⌘Cmd |
option |
[[⌥ Opt]] |
⌥ Opt |
| Input | Output | Preview |
|---|---|---|
up |
[[↑ Up Arrow]] |
↑ Up Arrow |
down |
[[↓ Down Arrow]] |
↓ Down Arrow |
left |
[[← Left Arrow]] |
← Left Arrow |
right |
[[→ Right Arrow]] |
→ Right Arrow |
pageup |
[[⇞ Page Up]] |
⇞ Page Up |
pagedown |
[[⇟ Page Down]] |
⇟ Page Down |
| Input | Output | Preview |
|---|---|---|
edit |
[edit](./edit) |
edit |
a b c |
[[A]] [[B]] [[C]] |
A B C (Single letters are capitalized) |