I differentiate between "Type these commands to do the task" (which should be copy/paste-able), and "Here is what my answer produces on MY system (YMMV)", where the $
and #
are used to show context.
A recent example is my answer to this questionthis question