11:tocdepth: 2
22
3+ .. highlightlang :: none
4+
35.. _windows-faq :
46
57=====================
@@ -39,12 +41,16 @@ or "Command prompt window". Usually you can create such a window from your
3941Start menu; under Windows 7 the menu selection is :menuselection: `Start -->
4042Programs --> Accessories --> Command Prompt `. You should be able to recognize
4143when you have started such a window because you will see a Windows "command
42- prompt", which usually looks like this::
44+ prompt", which usually looks like this:
45+
46+ .. code-block :: doscon
4347
4448 C:\>
4549
4650 The letter may be different, and there might be other things after it, so you
47- might just as easily see something like::
51+ might just as easily see something like:
52+
53+ .. code-block :: doscon
4854
4955 D:\YourName\Projects\Python>
5056
@@ -60,11 +66,15 @@ program. So, how do you arrange for the interpreter to handle your Python?
6066First, you need to make sure that your command window recognises the word
6167"python" as an instruction to start the interpreter. If you have opened a
6268command window, you should try entering the command ``python `` and hitting
63- return::
69+ return:
70+
71+ .. code-block :: doscon
6472
6573 C:\Users\YourName> python
6674
67- You should then see something like::
75+ You should then see something like:
76+
77+ .. code-block :: pycon
6878
6979 Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (Intel)] on win32
7080 Type "help", "copyright", "credits" or "license" for more information.
@@ -73,7 +83,9 @@ You should then see something like::
7383 You have started the interpreter in "interactive mode". That means you can enter
7484Python statements or expressions interactively and have them executed or
7585evaluated while you wait. This is one of Python's strongest features. Check it
76- by entering a few expressions of your choice and seeing the results::
86+ by entering a few expressions of your choice and seeing the results:
87+
88+ .. code-block :: pycon
7789
7890 >>> print("Hello")
7991 Hello
@@ -317,7 +329,9 @@ present, and ``getch()`` which gets one character without echoing it.
317329How do I emulate os.kill() in Windows?
318330--------------------------------------
319331
320- Prior to Python 2.7 and 3.2, to terminate a process, you can use :mod: `ctypes `::
332+ Prior to Python 2.7 and 3.2, to terminate a process, you can use :mod: `ctypes `:
333+
334+ .. code-block :: python
321335
322336 import ctypes
323337
0 commit comments