Conventions
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The function that actually logs Three
is known as a callback to the setTimeout
function."
A block of code is set as follows:
console.log('One'); console.log('Two'); setTimeout(function() { console.log('Three'); }, 2000); console.log('Four'); console.log('Five');
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
<div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"> Newest Images </h3> </div> <div class="panel-body"> {{#each images}} <div class="col-md-4 text-center" style="padding-bottom: 1em;"><a href="/images/{{ uniqueId }}"><img src="/public/upload/{{filename}}" alt="{{title}}" style="width: 175px; height: 175px;" class="img-thumbnail"></a></div> {{/each}} </div> </div>
Any command-line input or output is written as follows:
$ command -parameters –etc
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: " You should see The image:index controller testing123 on the screen!"
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.