Everyone's been whining for markdown support from day one (especially me). But that's no excuse to not click that "Styling with RST is supported" link and RTFM. And use "Preview".
You can edit your comments. Place ```nim on the line before your code block and ``` afterwards. Doesn't this look much better:
import os
echo "File Pattern: T*.txt "
for filename in walkFiles("T*.txt"):
echo filename
echo ""
echo "File Pattern: T??????.txt "
for filename in walkFiles("T??????.txt"):
echo filename
echo ""
echo "File Pattern: T???????.txt "
for filename in walkFiles("T???????.txt"):
echo filename
echo ""
Pressing F12 over walkFiles in vscode (or <M-g> in vim, etc) (and then the same for walkCommon, etc) shows the internals.
There's also a glob nimble module: "Pure Nim library for matching file paths against Unix style glob patterns."
This issue is resolved.
I realized that Nim uses platform-specific pattern matching for filenames. This depends on the OS in use.
In this case the Windows CLI has several quirks in the way it uses wildcards (*, ? etc.) for matching filenames. These quirks seem to have been inherited from the early DOS days. This would explain why I am not getting the expected results with my above code sample.
You may read more about Windows filename pattern matching at: https://blogs.msdn.microsoft.com/jeremykuhne/2017/06/04/wildcards-in-windows/