Class Lesstile
In: lib/lesstile.rb
Parent: Object

Methods

Constants

VERSION = '0.3'
CodeRayFormatter = lambda {|code, lang| CodeRay.scan(CGI::unescapeHTML(code), lang).html(:line_numbers => :table).div }   A formatter that syntax highlights code using CodeRay

Public Class methods

Returns lesstile formatted text as valid XHTML

options (all optional):

  • text_formatter: A callback function used to format text.
  • code_formatter: A callback function used to format code. Typically used for syntax highlighting.

[Validate]