30

I've seen a few people insert a "Live Demo" button in their answers instead of having to link to an external SQLFiddle. How do I do that? Is it restricted to a subset of users based on Reputation?

This is one such answer:

1
  • That is a link to an external site.. It's just styled like a button (and the link happens to be to a related site).
    – Blorgbeard
    Commented Nov 27, 2015 at 0:20

1 Answer 1

24

You can compose a query at the Stack Exchange Data Explorer.

Use the following code to create a button like this: Example button

<kbd>**[`Example button`](#example-button)**</kbd>

Where you replace #example-button with a link to your query.

7
  • I actually hadn't seen it since it always scroll outside of the screen '-'. 10 more minutes until I can accept. Thanks. Commented Nov 24, 2015 at 21:21
  • Now SEDE has become our own SQLFiddle. That's great.
    – Becuzz
    Commented Nov 24, 2015 at 21:21
  • @Becuzz SEDE was around long before SQLFiddle and able to be used for this.
    – Taryn StaffMod
    Commented Nov 24, 2015 at 21:24
  • 30
    Be warned that people who care about correct semantic markup do not approve of this use of kbd though.... Commented Nov 24, 2015 at 21:30
  • @MartinSmith what's the proper use of <kbd>, and what would be the proper way of linking a demo? Commented Nov 24, 2015 at 21:31
  • 5
    More on the kbd-button: meta.stackoverflow.com/questions/270967/… Commented Nov 24, 2015 at 21:32
  • 8
    And this one here meta.stackexchange.com/questions/181774/…. I guess the "proper" way would be a boring hyperlink. Commented Nov 24, 2015 at 21:36

You must log in to answer this question.

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