David Doria wrote:
You will need to create an extension for that. Other option would be to use one page for each file, and embed with {{#tag:source|lang="cpp"|{{/RandomNumbers.cxx}} }}, offering the download link going to acion=raw.
This sounds like it will do exactly what I'm looking for! I'm having a bit of trouble though:
I'm trying to display these two pages: http://www.vtk.org/Wiki/VTK/Examples/Cxx/SimpleOperations/DistancePointToLin... http://www.vtk.org/Wiki/VTK/Examples/Cxx/SimpleOperations/DistancePointToLin...
from this page: http://www.vtk.org/Wiki/VTK/Examples/Cxx/SimpleOperations/DistancePointToLin...
Taking only the Cxx as an example, I tried to display the page like this:
{{#tag:source|lang="cpp"|{{VTK/Examples/Cxx/SimpleOperations/DistancePointToLineCxx}} }}
but I get an error "Invalid language", even though I know 'cpp' is definitely a supported language.
Move the lang to the end {{#tag:source|{{VTK/Examples/Cxx/SimpleOperations/DistancePointToLineCxx}}|lang=cpp}}
I then tried to make the download link like this:
[[VTK/Examples/Cxx/SimpleOperations/DistancePointToLineCxx?action=raw | Download Cxx file]]
but the link is red, so I'm assuming I can't put the action=raw in the local link like that?
[{{fullurl:VTK/Examples/Cxx/SimpleOperations/DistancePointToLineCxx|action=raw}} Download Cxx file]