Class Rouge::Formatter
In: lib/rouge/formatter.rb
Parent: Object

A Formatter takes a token stream and formats it for human viewing.

Methods

find   format   format   new   render   stream   tag   token_lines  

Constants

REGISTRY = {}   @private

Public Class methods

Find a formatter class given a unique tag.

Format a token stream. Delegates to {format}.

Specify or get the unique tag for this formatter. This is used for specifying a formatter in `rougify`.

Public Instance methods

@deprecated Use {format} instead.

@abstract yield strings that, when concatenated, form the formatted output

Protected Instance methods

[Validate]