Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “Inside the header, some attributes can be declared, such as env:role
, env:mustUnderstand
, and env:relay
.”
A block of code is set as follows:
<env:Header> <BA:BlockA xmlns:BA="http://mysoap.com" env:role="http://mysoap.com/role/A" env:mustUnderstand="true"> ... </BA:BlockA> <BB:BlockB xmlns:BB="http://mysoap.com" env:role="http://mysoap.com/role/B" env:relay="true"> ... </BB:BlockB> </env:Header>
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
{"jsonrpc": "2.0", "method": "IsStudent", "params": [100], "id": 1} {"jsonrpc": "2.0", "result": true, "id": 1} {"jsonrpc": "2.0", "method": "IsStudent", "params": ["ABC"], "id": 2} {"jsonrpc": "2.0", "error": {"code": -1, "message": "Invalid enrollment id format"}, "id": 2}
Any command-line input or output is written as follows:
$ sudo apt update && sudo apt install curl
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “Select Next and you’ll be asked in which directory you’d like it to be installed. “
Tips or important notes
Appear like this.