Keyboard shortcuts for HTML tags
Introduces the following shortcuts to Archive of Our Own text inputs, including comment boxes and new work text fields. When key combination is pressed, html is inserted, with the cursor placed between the tags. Highlighted text in input fields will be surrounded by the tag corresponding to your keystroke.
<b></b> – bold<details></details> – a hideable element<em></em> – semantic emphatic italics<i></i> – italics<cite></cite> – semantic title italics<li></li> – list item<mark></mark> – highlighting<p></p> – paragraph<ol></ol> – ordered list<q></q> – inline quotation<s></s> – struck-through text<u></u> – underlined text<blockquote></blockquote> – block quotation<code></code> – monospace/code<img src="" alt="(image description here)" /> – image<summary></summary> – heading for a <details> element<br/> – forced line break<strong></strong> – semantic emphatic bold<ul></ul> – unordered listOn matching sites, this script will prevent the above shortcuts from activating their normal browser functionality.
This script is compatible with AO3 Floating Comment Box.