Class Syntaxi
In: lib/syntaxi.rb
Parent: Object

Syntaxi is a class for formatting code blocks in your HTML. It can:

  • Add line numbers
  • Wrap long lines automatically
  • Perform syntax coloring using Jamis Buck’s Syntax gem

See README for installation and usage instructions.

Methods

Public Class methods

Sets the line number method. Valid values are ‘none’, ‘floating’, or ‘inline’. Default is +’inline’+

See Syntaxi class documentation for more information.

Sets the column on which to wrap if line wrap is enabled. Defaults to +65+

See Syntaxi class documentation for more information.

Sets whether or not to wrap long lines. Defaults is true

See Syntaxi class documentation for more information.

Public Instance methods

Processes the text that this object was initialized with according to the configuration parameters.

[Validate]