Suggestion: Select/Copy Code Button
Hi! I have a suggestion to improve VBForums. In code boxes or code highlight boxes, there should be a small button next to "code:" (nothing flashy) when clicked, it selects and/or copies the code within.
Code:
You should be able to copy this.
VB Code:
This too, excluding line numbers, obviously.
What do you all think? It won't change a whole lot, but it's a nice little update.
Thanks,
~Nic
Re: Suggestion: Select/Copy Code Button
The "buttons" we use are built into vBulletin. Am rather certain there isn't a button like you suggested.
Re: Suggestion: Select/Copy Code Button
Right... that's what he's suggesting. I've seen it on other sites... he's not talking about in the editor... but in the posts themselves, when ever there is a code block, to also have a button that will copy the contents of that code block to the clipboard.
Like here - https://www.codeproject.com/Articles...mation-in-flat ... scroll down to the code blocks and on the right there is "hide" and "copy code".
-tg
Re: Suggestion: Select/Copy Code Button
Tech - that doesn't appear to be a vBulletin site....
There are tons of addins/plugins for vBulletin...but we don't use them...
BUT, rumor has it that vBulletin 5.x is being tested for release here... Maybe it has the option.
Re: Suggestion: Select/Copy Code Button
Quote:
Originally Posted by
techgnome
Right... that's what he's suggesting. I've seen it on other sites... he's not talking about in the editor... but in the posts themselves, when ever there is a code block, to also have a button that will copy the contents of that code block to the clipboard.
Like here -
https://www.codeproject.com/Articles...mation-in-flat ... scroll down to the code blocks and on the right there is "hide" and "copy code".
-tg
Yes, exactly that! A "hide" button wouldn't be a bad idea either. Sometimes the code blocks are unnecessarily large and it would be nice to read the post uninterrupted. Again, nothing that's needed too badly, but would be nice to have.