39

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.

5
  • 10
    This would be handy. +1
    – DMA57361
    Commented Sep 16, 2010 at 20:44
  • 3
    Out of all the sites, I guess Superuser gets the most "press x, then y" type answers. Commented Sep 16, 2010 at 21:10
  • 1
    Great idea!
    – JNK
    Commented Sep 17, 2010 at 1:23
  • 2
    Reported upstream as meta.stackexchange.com/questions/102841/… which adds a shortcut, although a menu button would be nice too. Commented Sep 19, 2012 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
    Commented Mar 6, 2013 at 20:14

3 Answers 3

12

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.

6
  • +1 - Another one where IE users are left out =( Commented May 18, 2013 at 4:17
  • does IE even have an extention/userscript framework?
    – Journeyman Geek Mod
    Commented May 18, 2013 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 :( Commented May 18, 2013 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. Commented May 21, 2013 at 11:14
  • Great! ... Until there is an official update or something, I am happy to mark this the answer :) Commented May 22, 2013 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. Commented Feb 27, 2014 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.

2
  • 5
    Given that similar features already exist, how hard can it be? Commented Feb 3, 2012 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. Commented Sep 19, 2012 at 0:44

You must log in to answer this question.

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