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
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
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.

Quick copy button for code blocks

+5
−0

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.

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.

Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

0 answers

Sign up to answer this question »