Forums

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

Copy and Paste HTML into Confluence?

Emily Kearney
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!
June 21, 2017

I'm currently putting a large amount of code into the HTML macro in Confluence. When I paste the code from my source into the macro box, the code seems to not contain the formatting that it once had (lines). If I paste that same code anywhere else, it will keep the formatting. Is there something I'm doing wrong? What can I do to prevent manually reformatting the code?

1 answer

0 votes
StephR
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 29, 2017

Hi Emily,

A couple of questions:

  1. Where are you copying the HTML from?
  2. If you paste into a program like Sublime Text, does it retain the formatting?
  3. Does it lose the formatting on paste or after you publish and then open again to edit?

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events