# Discourse plugin to auto-select "code"?

**URL:** https://discourse.flucoma.org/t/discourse-plugin-to-auto-select-code/79
**Category:** Site Feedback
**Created:** [September 26, 2018, 7:10am UTC](https://discourse.flucoma.org/t/discourse-plugin-to-auto-select-code/79 "2018-09-26T07:10:21Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![rodrigo.constanzo](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/rodrigo.constanzo/32/12_2.png) [@rodrigo.constanzo](https://discourse.flucoma.org/u/rodrigo.constanzo)
#### Post date: [September 26, 2018, 7:10am UTC](https://discourse.flucoma.org/t/discourse-plugin-to-auto-select-code/79/1 "2018-09-26T07:10:21Z")

</div>

I imagine there’s probably a plug in for this, but at the moment, when people pasted longer bits of Max code (long enough to create a scroll bar in the ‘code’ window), it’s not easy to select the code.

If you drag and select, it eventually scrolls the whole webpage and ends up selecting everything above or below the code too. So you have to do this delicate dance of selecting only what you want.

Ideal would be something like the c74 forum where there’s a one-button-click to copy the code, but if not, something to contain the selection.

---

<div class="post-metadata">

### Author: ![tutschku](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tutschku/32/22_2.png) [@tutschku](https://discourse.flucoma.org/u/tutschku)
#### Post date: [September 26, 2018, 1:02pm UTC](https://discourse.flucoma.org/t/discourse-plugin-to-auto-select-code/79/2 "2018-09-26T13:02:13Z")

</div>

YES! I totally agree!

---

<div class="post-metadata">

### Author: ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)
#### Post date: [September 27, 2018, 12:21pm UTC](https://discourse.flucoma.org/t/discourse-plugin-to-auto-select-code/79/3 "2018-09-27T12:21:45Z")

</div>

If you find such plugin send along and I’ll install it. Otherwise I’ll ask the cycling people as soon as I’m off the road.

---

<div class="post-metadata">

### Author: ![rodrigo.constanzo](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/rodrigo.constanzo/32/12_2.png) [@rodrigo.constanzo](https://discourse.flucoma.org/u/rodrigo.constanzo)
#### Post date: [September 27, 2018, 12:34pm UTC](https://discourse.flucoma.org/t/discourse-plugin-to-auto-select-code/79/4 "2018-09-27T12:34:46Z")

</div>

Here’s a theme:

> **[COPY option for code blocks in Discourse](https://meta.discourse.org/t/copy-option-for-code-blocks-in-discourse/60961)**
>
> Here is a couple of changes to add a COPY TO CLIPBOARD feature for Discourse code blocks. Install it directly as a mini-Theme via: Or you can manually apply this feature to a Discourse forum as follows: Go to “Admin” setting page and then...

Not sure how that kind of stuff is installed for discourse, but looks fairly straight forward, and would be perfect.

---

<div class="post-metadata">

### Author: ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)
#### Post date: [September 27, 2018, 2:21pm UTC](https://discourse.flucoma.org/t/discourse-plugin-to-auto-select-code/79/5 "2018-09-27T14:21:26Z")

</div>

Great! Will install straight after my studio session with Kasper.

---

<div class="post-metadata">

### Author: ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)
#### Post date: [September 27, 2018, 4:13pm UTC](https://discourse.flucoma.org/t/discourse-plugin-to-auto-select-code/79/6 "2018-09-27T16:13:31Z")

</div>

should be done now - it works for me but you have to reload the page if it has been cached.
