36

Not sure if this should just be here or if I should post on Meta.Stackoverflow - please can a mod move if you think it should be there.

When writing answers, one of the items that takes me the longest is to type the keyboard code:

  <kbd> </kbd>

I am not saying it takes hours, or is a major problem, but it is an inconvenience and I think that this would make an excellent addition.

  • 10
    This would be handy. +1 – DMA57361 Sep 16 '10 at 20:44
  • 3
    Out of all the sites, I guess Superuser gets the most "press x, then y" type answers. – William Hilsum Sep 16 '10 at 21:10
  • 1
    Great idea! – JNK Sep 17 '10 at 1:23
  • 2
    Reported upstream as meta.stackexchange.com/questions/102841/… which adds a shortcut, although a menu button would be nice too. – Tom Wijsman Sep 19 '12 at 0:46
  • I was actually unaware of how to do this when I found this post. I only knew it was possible from seeing it edited into another post. I believe it would increase ease and awareness with using this feature. – washbow Mar 6 '13 at 20:14
11

I have now created an extension that adds the requested button:

enter image description here

The extension is available on GitHub and should work as:

  • Userscript
  • Firefox Extension
  • Chrome Extension
  • Opera Extension

Please go to the StackApps page for the latest download links and report any issues on the GitHub issue tracker and I'll look into it.

  • +1 - Another one where IE users are left out =( – Kevin Fegan May 18 '13 at 4:17
  • does IE even have an extention/userscript framework? – Journeyman Geek May 18 '13 at 7:38
  • @KevinFegan: You may want to look into IEPlus or TrixIE, but I don't have proper links for either. Also, the framework I'm using does support IE, but it's only available in the commercial version :( – Der Hochstapler May 18 '13 at 10:25
  • Humm, I tried it with TrixIE, didn't work. This could be painful to debug. And TrixIE isn't really available any more. I can only find it on some 3rd party download portals. – Der Hochstapler May 21 '13 at 11:14
  • Great! ... Until there is an official update or something, I am happy to mark this the answer :) – William Hilsum May 22 '13 at 0:44
  • Works great on Chrome! The button icon doesn't appear for me (because *.imgur.com is blocked) but the button still functions fine. – Kevin Panko Feb 27 '14 at 22:51
4

Personally, I use https://stackapps.com/questions/3341/kbd-markup-shortcuts mostly. It provides Alt+K as a hotkey to apply KBD markup to the selected text.

I also added this functionality to my fork of the Super User Automatic Corrector userscript but it's implemented poorly.

-5

This is used quite sparingly, so it would not be worth the time or the effort to implement this, as much as we Super Users would enjoy it.

  • 5
    Given that similar features already exist, how hard can it be? – Der Hochstapler Feb 3 '12 at 17:14
  • 3
    Are these your words or do they come from the team? This ain't really hard, so would be nice to see the declined tag pulled out of this question. – Tom Wijsman Sep 19 '12 at 0:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .