Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Copy from Code Macro


We have a lot of articles with code blocks and often need to copy text from one.

But it will be more comfortable and userfiendly to make it with button, like "Copy code from this block" 

Does any way to create button with some action exist?

1 answer

1 accepted

0 votes
Answer accepted
Danyal Iqbal Community Leader Mar 03, 2021

double click on the code to copy all code in the macro and than copy paste like you normally do.

You could write a a script to add the button and add it to the html macro, if you really need to.

thanks! double click works.

I tried to create html-block with copy button but it has not work yet. I don't understand  and can't find answer in google how to copy text from one no-html-block like code macro  

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,752 views 8 32
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you