4 ms·
You can avoid typing errors in commands or code as part of Markdown files (or any other markup language) by using some form of 'literate programming' like Jupyt
by ReleaseCandidat 5y ago
You can avoid typing errors in commands or code as part of Markdown files (or any other markup language) by using some form of 'literate programming' like Jupyter notebooks. The default IPython kernel supports shell by putting a '!' before each line of shell commands.
You can get Jupyter kernels for almost any programming language - though many work on Linux only.
Or you can use Org-Mode (with babel), if you're an Emacs user.
That's how I write all documentation involving some sort of code.