Jump to content

"Select All" button for [CODE] blocks


sumghai

Recommended Posts

Whilst copy-pasting a community fix for HotRockets configs from a user's forum post, I found that it was somewhat difficult / tedious to highlight

 blocks with large amounts of content.

Would it be possible to add a "Select All" button/link for each [code] block?

Link to comment
Share on other sites

It should be possible. I think. It depends how easy to access the code (har) for the code BBCode (semantic satiation in 3....2...) is to fiddle with. If it can be fiddled with, appending (or prepending, depending on what you want to do with it) a button with some Javascript to select the element's contents would be simple enough.

Link to comment
Share on other sites

It depends how easy to access the code for the code BBCode is to fiddle with.

:confused::)

I had made a search function for text documents before. In this case, would look kind of like this. (NOTE: a concept, wouldn't work, don't have the time for a working program.)


toFind = "[noparse][code]"
tofind2 = "

[/noparse]"

postCharList = ""

for char in post:

postCharList += char

And then it would go through the string, and when it found the first character of one of the toFind variables, it would check if the next was the second and so on, then mark them for you.

Link to comment
Share on other sites

Whilst copy-pasting a community fix for HotRockets configs from a user's forum post, I found that it was somewhat difficult / tedious to highlight
 blocks with large amounts of content.

Would it be possible to add a "Select All" button/link for each [code] block?

Good idea but these BB-codes are hardcoded so I can't change them. So unfortunately not a posibility

Link to comment
Share on other sites

Yeah, but one click is just so damn convenient​. :P

English to English translation: People are lazy. :P

I've used compilers where you could select a bracket and do something like "SHIFT+[" and it jumped to the match, is there anything like that?

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...