Can you use CodeSnippets to show text from a separate file?
Posted: Wed Oct 23, 2024 2:10 am
Hi!
The CodeSnippet option could be helpful, but I am looking to include ~14 Batch Scripts in separate Topics using CodeSnippets...
However the BatchScripts are liable to change, so I do not want to copy and paste text into the CodeSnippet - that would be too painful...
It would be super helpful to be able to provide the CodeSnippet with a link to the Batch Script file that would get the contents of the file at the point of generation, in a similar way to how MadCap htm files can use Snippet files.
I have had a look and fear that this is simply not possible at the moment with current MadCap solution...
The only way I can think of would be to write another Batch Script to take the Batch Script files and generate the MadCap.htm files including the CodeSnippet with text inserted copied from the target Batch file...
Have a great day!
The CodeSnippet option could be helpful, but I am looking to include ~14 Batch Scripts in separate Topics using CodeSnippets...
However the BatchScripts are liable to change, so I do not want to copy and paste text into the CodeSnippet - that would be too painful...
It would be super helpful to be able to provide the CodeSnippet with a link to the Batch Script file that would get the contents of the file at the point of generation, in a similar way to how MadCap htm files can use Snippet files.
I have had a look and fear that this is simply not possible at the moment with current MadCap solution...
The only way I can think of would be to write another Batch Script to take the Batch Script files and generate the MadCap.htm files including the CodeSnippet with text inserted copied from the target Batch file...
Have a great day!