On Thu, 22 Dec 2022 at 08:06, Geany User via Users users@lists.geany.org wrote:
On 2022-12-21 11:25, Virgil Arrington via Users wrote:
Hi all,
I am using Geany 1.37 with Windows 11. I wish to build an html file from a markdown source file. In the Build > Set Build Commands dialog, I typed in the following command:
python -m markdown %f > %e.html
I'd guess that the command isn't run under a shell but rather directly.
Correct, its run with `CreateProcess()` because the various shell executes don't allow the re-direction of stdin and stdout AFAICT.
In that case I'd...
Look for an output argument, such as -o
python -m markdown -o %e.html %f
If that doesn't exist, try wrapping in a shell:
cmd.exe /c "my command"
May have to use /k or other trickery. Check with cmd /h.
Also may need extra quoting of the command, buyer beware.
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org