Conventions

In this book, you will find a number of styles of text 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 bigger difference lies in the snippet code. You can see that after getting the user data, we've invoked a method called fetchUserData and used its result to change the contents of a li tag."

A block of code is set as follows:

import code.lib.googleSession
import net.liftweb.util.BindHelpers._
import net.liftweb.common.Full

object GmailData {
  def render = {
    googleSession.get match {
      case Full(email) => ".email" #> email
      case _ =>  "*" #> "Not authorized"
    }
  }
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

        <pubDate> {longDate(Calendar.getInstance().getTimeInMillis)} </pubDate>
        {ClientCache.clients.flatMap {
        c =>
          <item>
            <title>Client: {c.id}</title>
            <description>Name: {c.name} - E-mail: {c.email}</description>

Any command-line input or output is written as follows:

scala> val transformSpanContent = "span *" #> "Some Text"

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "If you select a name in the combobox and click on the Delete Selected button, you'll see an alert saying that the name you selected was deleted."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.17.40