rb-pygments

This is a wrapper for the Pygments syntax highlighter. It can be used to highlight a wide variety of languages in a wide variety of formats.

Usage

All functionality is available through the Pygments module. Highlighting is done via the highlight method, like so (reformatted for readability:

Pygments.highlight("Some.ruby(:code)", :ruby, :html, :nowrap => true)
  #=> Some
      .
      ruby
      (
      :code
      )

Stylesheets and such can be retrieved via the style method.

Requirements

yard-pygments requires that Pygments be installed. Since Pygments is written in Python, it needs to be installed manually. If you've got easy_install, you can do

easy_install Pygments

Otherwise, it can be downloaded here.