Select All for [code] BBcode (XenForo modification)

Minor feature: it might be convenient for Code Box to include Select All link button to select all inside it, so manually highlighting all code won't be necessary. Especially lengthy lines.
Code:
This is general code
0SSVlYC.png


Edit- Link: https://xenforo.com/community/resources/adding-select-all-for-code-bbcode.6204/

Note: "select all" button is not included however it adds a functionality that each time you click (or tap) inside a code box, it'll select all the text within it.
just for your info:
most of the "lengthy lines" in the code boxes of the forum are due to a long past forum update that broke the scripts and couldn't be repaired.
If a line goes longer than perhaps a 100 letters then that is most likely due to dozens of lines mixed into one b< that old error, scripts rarely have such long lines.
And it takes programming knowledge to manually repair the broken code in the box, which is why this has rarely be done.

That said, it is a good idea but the people responsible for forum updates also have other work to do, so I don't know if or when this could be implemented.
@Andar Thanks for the info/ response. When I mean lengthy lines, sort of like this example where the Code is inside the Spoiler. I'm aware that there are other alternatives for hosting scripts such as Pastebin, DropBox, etc.

Thank you for your time.
I like this idea. Some plugins I only post for example, though they aren't completed yet, but I guess people have to highlight hundreds of lines manually.

It would only be about 10 lines of javascript to implement a select all container text button.

I'll just leave this Stack thread here as a nudge to your forum dev.
http://stackoverflow.com/questions/1173194/select-all-div-text-with-single-mouse-click

I know it probably won't be on the table for a long time yet, with the forum change.
Found a link- https://xenforo.com/community/resources/adding-select-all-for-code-bbcode.6204/
I hope this helps.

Original thread: https://forums.rpgmakerweb.com/threads/select-all-for-code-bbcode-xenforo-modification.77768/