Issue #5559 open

Ability to embed (not link) a file in a wiki page (BB-7694)

Greg Hutchinson
created an issue

I would like to have the ability from the wiki to embed a file (not link) into the contents of a wiki page. I am writing a tutorial where I have examples in a bitbucket repository and I would like the wiki to point to the most current tip of the examples. However, the linking back and forth makes this cumbersome. Being able to embed the file (with similar syntax to the link) would be a great feature. Thanks

Comments (8)

  1. Greg Hutchinson reporter

    What I would like to be able to do is instead of embedding a java file (copy) like below:

    Exercise 1

    public class ForStatementExample {

    public static void main(String[] args) {
    
        System.out.println("Starting the program");
    
        for (int i = 0; i < 10; i++) {
            System.out.println("The current value of i is " + i);
        } 
        System.out.println("Ending the program");
    }
    

    }


    I would like to be able to do something like:

    Exercise 1

    <<embedFile src/ca/fcc/example/ForStatementExample>>


    which would end up displaying like the above example.

  2. Log in to comment