1. Computing

Text and Paragraphs

By

3 of 4

Formatting
Text and Paragraphs

Formatting can be applied to any text by using one of the following:strong, em, code, sub or sup. These are analogous to the HTML tags of the same name. For example, strong text is bold, em text is italicized and code text is in a monospace font.

Shoes.app :width => 380, :height => 240 do
  stack do
    para "Inside the ", code("para"), " container ",
      "you can use ", strong("any"), " ", em("numb er"),
      " of the ", sup("formatting"),
      " ", sub("options"), " available to you."[br ] end
end
  1. About.com
  2. Computing
  3. Ruby
  4. Graphical User Interfaces
  5. Shoes
  6. Formatting

©2014 About.com. All rights reserved.