This tutorial explains how to embed Python code from a script, located in certain directory.
Approach demonstrates that highlight
shortcode can be combined with readfile
shortcode.
File can be located in any directory, full path (starting from repo directory) should be specified.
|
|
Shortcode provides link to the file for download.
File is located in static directory, full path should be specified.
|
|
File is located in same directory. No path is required.
|
|
Same as in the example above with additional highlighting of selected lines.
|
|