using sphinx, know can show piece of python code snippet or ruby code snippet having like:
.. code-block:: ruby. ${your ruby code goes here} how can show code snippet of linux commands or console commands not related languages? don't care if not highlighted syntax wise, want them show in doc piece of code other normal text. eg.
ls -lsa . make file
you can indent text want written code, , precede double colon. example:
some body text explaining what's coming up:: ls -lsa . make file or turns out can away without text before, using double colons. in first case, 1 colon gets rendered, while case, code gets rendered.
:: mkdir test cd !$ then commands come out in fixed-width font, and, depending on style sheets you've chosen, highlighted (by default, highlighted green background).
you can inline-highlight backticks, e.g. `ls -lsa .`.
Comments
Post a Comment