public Method

ToHtml.init_tags

Set up the standard mapping of attributes to HTML tags

Source Code

# File rdoc/markup/simple_markup/to_html.rb, line 28
def init_tags
  @attr_tags = [
    InlineTag.new(SM::Attribute.bitmap_for(:BOLD), "<b>", "</b>"),
    InlineTag.new(SM::Attribute.bitmap_for(:TT),   "<tt>", "</tt>"),
    InlineTag.new(SM::Attribute.bitmap_for(:EM),   "<em>", "</em>"),
  ]
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.