Pasting colored text - return ugly formatted

Hello,

I created a normal blank page and I'd like to paste a nicely formatted XML code (which has indents and is colored (blue, red). But generally after pasting the code has no colors sad How can I paste code and keep its original color? 

 

Thank you, 

Chris

5 answers

0 vote
Steven Behnke Community Champion Jun 15, 2015

Are you pasting it in the XML Source Editor or in the Page editor?

I'm not sure, I just click on "Edit"... so I guess it's Page editor.

Thank you for your help! I used the Source Editor, chose the HTML/XML and it looks as I wanted! :)

0 vote
Steven Behnke Community Champion Jun 23, 2015

Glad I could help.

0 vote
Steven Behnke Community Champion Jun 23, 2015

Okay, the problem is that Confluence likes to strip that stuff out on purpose, that's a goal. If you are on Confluence Server (not Cloud) you can use the included HTML macro to paste in HTML code OR you can use the free add-on Source Editor to make some edits. I think that's about all you can do.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,896 views 27 12
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you