Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Post History

81%
+7 −0
Q&A Quick copy button for code blocks

Code blocks have a maximum height, after which any extra content scrolls vertically. This can make it tricky to copy the code for testing or adjusting when answering a question, or assessing an ans...

1 answer  ·  posted 2y ago by trichoplax‭  ·  edited 1y ago by trichoplax‭

#3: Post edited by user avatar trichoplax‭ · 2023-06-05T22:00:49Z (over 1 year ago)
Typo
  • Code blocks have a maximum height, after which any extra content scrolls vertically. This can make it tricky to copy the code for testing or adjusting when answering a question, or assessing an answer. Sometimes while trying the highlight the code in the code block ready for copying, other text on the page suddenly becomes highlighted too.
  • ```text
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • ```
  • Would it be feasible to have a way of copying the full content of the code block, perhaps a button next to the code block?
  • I'm not sure the best way to do this without getting in the way of reading the code block, but I thought it might be worth discussing options.
  • Code blocks have a maximum height, after which any extra content scrolls vertically. This can make it tricky to copy the code for testing or adjusting when answering a question, or assessing an answer. Sometimes while trying to[]() highlight the code in the code block ready for copying, other text on the page suddenly becomes highlighted too.
  • ```text
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • Some example code
  • ```
  • Would it be feasible to have a way of copying the full content of the code block, perhaps a button next to the code block?
  • I'm not sure the best way to do this without getting in the way of reading the code block, but I thought it might be worth discussing options.
#2: Post edited by user avatar Monica Cellio‭ · 2023-06-04T18:22:19Z (over 1 year ago)
#1: Initial revision by user avatar trichoplax‭ · 2022-09-24T01:12:01Z (about 2 years ago)
Quick copy button for code blocks
Code blocks have a maximum height, after which any extra content scrolls vertically. This can make it tricky to copy the code for testing or adjusting when answering a question, or assessing an answer. Sometimes while trying the highlight the code in the code block ready for copying, other text on the page suddenly becomes highlighted too.

```text
Some example code
  Some example code
    Some example code
      Some example code
        Some example code
          Some example code
            Some example code
              Some example code
            Some example code
          Some example code
        Some example code
      Some example code
    Some example code
  Some example code
Some example code
  Some example code
    Some example code
      Some example code
        Some example code
          Some example code
            Some example code
              Some example code
            Some example code
          Some example code
        Some example code
      Some example code
    Some example code
  Some example code
Some example code
  Some example code
    Some example code
      Some example code
        Some example code
          Some example code
            Some example code
              Some example code
            Some example code
          Some example code
        Some example code
      Some example code
    Some example code
  Some example code
Some example code
  Some example code
    Some example code
      Some example code
        Some example code
          Some example code
            Some example code
              Some example code
            Some example code
          Some example code
        Some example code
      Some example code
    Some example code
  Some example code
Some example code
```

Would it be feasible to have a way of copying the full content of the code block, perhaps a button next to the code block?

I'm not sure the best way to do this without getting in the way of reading the code block, but I thought it might be worth discussing options.