Next: Including Graphics, Previous: Numbered Lists, Up: Publishing Markup [Contents][Index]

#### 11.11.2.8 Including File Content

To include the content of an external file, e.g., a file called ‘`my_function.m`’ at the same location as the published Octave script, use the following syntax to include it with Octave syntax highlighting.

Alternatively, you can write the full or relative path to the file.

    ##
    #
    # <include>my_function.m</include>
    #
    # <include>/full/path/to/my_function.m</include>
    #
    # <include>../relative/path/to/my_function.m</include>
    #