Keyboard shortcuts for HTML tags
< 腳本AO3 Formatting Shortcuts的回應
I'll add the alt
attribute with a placeholder string at your suggestion; do you mind sharing the tags you like to use? The ones I've included are just based on my own habits.
I'm so sorry for the late reply, I only saw your question now when I was recommending this script to someone!
This is in my current version of your AMAZING script I use for AO3, Dreamwidth, and SquidgeWorld:
Shifted:
c : center
n : br
s : small
Normal:
a : a href=
b : big
g : bigger
e : em
i : img src= alt= title=
d : details
m : summary
q : blockquote
s : strong
u : ul
l : li
Ignore "bigger", that's just for my Dreamwidth where I custom-CSS'd specific font sizes.
I avoid big, small, and center because they're deprecated in HTML5. Having details, summary, and list markup is a good idea, though. I'll loop those in.
No more HTML fails and having to edit the comment again. :D
I tweaked it a bit to include all HTML tags (and only those) I actually use for comments. Great that it also works with the Floating Comment Box!
Would suggest an official change to the image tag that encourages use of alt text, though.