Forums

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

Can I connect to / display code from an external file into a Confluence "know how" article?

Caterina Lani May 14, 2018

Hi,

 

I would like to display code taken from an external file (say test.py in my github repo) and display it in a "know how" article. Is that possible?

2 answers

2 accepted

1 vote
Answer accepted
David at David Simpson Apps
Atlassian Partner
May 15, 2018

Hello, Gister: GitHub Gist Macro for Confluence does that if the external file is a Gist. Here's an example.

Disclaimer: I am the add-on author/vendor.

0 votes
Answer accepted
Alana Fernando
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.
May 15, 2018

@Caterina Lani just to get an idea about your concern,

  1. are you trying to import an external document in to a How to article ?
  2. are you trying to insert a code inside a how-to article

alternatively you can insert your file through a confluence link 

Or insert your code inside code block macro . you can apply those option inside a how to article too. 

Caterina Lani May 15, 2018

Hi Alana,

 

I am trying to add some code, but I would like a more automated way than using the code block macro. I would like to show it as code, but through some embedding mechanism (rather than copy+paste) that takes it from my repo. is that possible?

 

Thanks

Caterina

Alana Fernando
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.
May 15, 2018

@Caterina Lani , to the best of my knowledge it is not possible with default confluence. 

But below plugins might help you, 

Caterina Lani May 15, 2018

Great, I will take a look. Thanks

Caterina

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events