Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Copy from Code Macro

Ami Chidori
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 3, 2021

Hi! 

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 3, 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.

Ami Chidori
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 4, 2021

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  

Like Jürgn likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events