code snippets in wiki markup

My company is currently running 3.3.3 and i am tasked with creating a document that requires code snippets.

How do you best present code in this version.

I found a macro, but it says that it doesn't export to PDF very well.

Does anyone have a good solution to this?

(I do know that there is an upgrade in the works, but no one has time to do this at the moment.)

2 answers

2 votes
David Simpson Community Champion Jul 07, 2011

The obvious choice is the {code} macro.

A quick test on Confluence 3.3 seems to show it working nicely in both Confluence and a PDF rendition of the page.

Here's a link to the full image:

http://yfrog.com/z/kkghlp

David Simpson Community Champion Jul 07, 2011

-- now moved to yfrog. hope it doesn't close soon.

David Simpson Community Champion Jul 07, 2011

In the example above, I was using the bundled {code} macro on a clean installation of Confluence 3.3.

Which macro did you find. There is more than one. If you are on 3.3.3 you might want to check out the appropriate version of

the New Code Macro (1.9.6)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

769 views 23 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