# Code tags should have a header with select all / copy all

**URL:** https://meta.discourse.org/t/code-tags-should-have-a-header-with-select-all-copy-all/42259
**Category:** UX
**Created:** [April 8, 2016, 8:16pm UTC](https://meta.discourse.org/t/code-tags-should-have-a-header-with-select-all-copy-all/42259 "2016-04-08T20:16:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Drew\_Warwick](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/drew_warwick/32/80591_2.png) [@Drew\_Warwick](https://meta.discourse.org/u/Drew_Warwick)
#### Post date: [April 8, 2016, 8:16pm UTC](https://meta.discourse.org/t/code-tags-should-have-a-header-with-select-all-copy-all/42259/1 "2016-04-08T20:16:52Z")

</div>

The main purpose of including code on a forum post is so other people can use it, to either help find problems or just use it in their own projects. Placing the cursor before the last character, scrolling to the bottom of condensed code blocks, and shift clicking after the last character to select all of the code isn’t _that_ tedious, but other major sites like Github, Pastebin, etc all have a copy all / select all / view raw in its own tab options for good reason. It’d be wonderful for code tags, whose existence is based upon giving people the code within them, to provide that with the single click of a button. It would also be useful for users who didn’t know they can shift click to select text. Sometimes I find even myself forgetting to shift click to select all of the text and end up click dragging to select.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [April 8, 2016, 8:33pm UTC](https://meta.discourse.org/t/code-tags-should-have-a-header-with-select-all-copy-all/42259/2 "2016-04-08T20:33:47Z")

</div>

A good idea for “code” forums.

But I don’t know if the ratio of Discourse forums that might be considered “code” forums is high enough to have it in the Core.

Maybe better as a plugin?

---

<div class="post-metadata">

### Author: ![Drew\_Warwick](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/drew_warwick/32/80591_2.png) [@Drew\_Warwick](https://meta.discourse.org/u/Drew_Warwick)
#### Post date: [April 8, 2016, 9:10pm UTC](https://meta.discourse.org/t/code-tags-should-have-a-header-with-select-all-copy-all/42259/3 "2016-04-08T21:10:29Z")

</div>

I’m not sure. Initially, yeah – you’re right. It definitely sounds more suitable for a plugin. But even if not all Discourse forums are code forums, the code tags are part of Discourse’s core. Code tags aren’t a plugin, so I don’t think an upgrade to them should be a plugin.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [April 9, 2016, 2:19am UTC](https://meta.discourse.org/t/code-tags-should-have-a-header-with-select-all-copy-all/42259/4 "2016-04-09T02:19:47Z")

</div>

This is a dupe req, I will dig out the other in a bit.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [April 9, 2016, 2:19am UTC](https://meta.discourse.org/t/code-tags-should-have-a-header-with-select-all-copy-all/42259/5 "2016-04-09T02:19:50Z")

</div>


