Skip to content

About

A simple formatter for Blender.Community

Resources

Stars

1 star

Watchers

2 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

License Contributors

Blender.Community.Textformatter

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

🛠 Features

  • Better Italic and Bold formatting with ⎈ CtrlI and ⎈ CtrlB
  • Converts edit into [edit](./edit), a clickable link for a post's author to edit their own post.
  • Automatically formats keyboard shortcuts
    E.G. ctrl alt s converts to [[&#9096; Ctrl]] [[&#9095; 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.

📥 Installation

  1. Install a userscript manager:
  2. Click this link to install the script.
  3. 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.


📝 How to Use

  1. Select the text you want to format inside a Blender.Community textarea.
  2. Press ⎈ CtrlY to apply formatting.
  3. The text will be replaced with properly formatted elements.

🔄 Updates & Contributions

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


📋 Formatting Rules

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.

🖥 Keyboard Keys

Input Output Preview
ctrl [[&#9096; Ctrl]] ⎈ Ctrl
alt [[&#9095; Alt]] ⎇ Alt
shift [[&#8679; Shift]] ⇧ Shift
tab [[&#8633; Tab]] ↹ Tab
capslock [[&#8682; Caps Lock]] ⇪ Caps Lock
delete [[&#8998; Delete]] ⌦ Delete
enter [[&#9166; Enter]] ⏎ Enter
backspace [[&#10229; Backspace]] ⟵ Backspace
printscreen [[&#9113; Print Screen]] ⎙ Print Screen

⏩ Function Keys

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

🖱 Mouse Buttons

Input Output Preview
lmb [[Left 🖱️]] Left 🖱️
rmb [[Right 🖱️]] Right 🖱️
mmb [[Middle 🖱️]] Middle 🖱️
wheel [[Wheel 🖱️]] Wheel 🖱️

🖥 OS Keys

Input Output Preview
win [[&#x1F9F0; Win]] 🧰 Win
super [[&#8984; Super]] ⌘ Super
meta [[&#9670; Meta]] ◆ Meta
command [[&#8984;Cmd]] ⌘Cmd
option [[&#8997; Opt]] ⌥ Opt

🔼 Navigation Keys

Input Output Preview
up [[&#8593; Up Arrow]] ↑ Up Arrow
down [[&#8595; Down Arrow]] ↓ Down Arrow
left [[&#8592; Left Arrow]] ← Left Arrow
right [[&#8594; Right Arrow]] → Right Arrow
pageup [[&#8670; Page Up]] ⇞ Page Up
pagedown [[&#8671; Page Down]] ⇟ Page Down

📌 Special Formatting

Input Output Preview
edit [edit](./edit) edit
a b c [[A]] [[B]] [[C]] A B C (Single letters are capitalized)

About

A simple formatter for Blender.Community

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages