This is an extension of Ruby lexer that just add some keywords used on RSpec, including some keywords used with Capybara too.
$ (sudo) pip install pygments-rspec
$ git clone git://github.com/hugomaiavieira/pygments-rspec.git $ cd pygments-rspec $ (sudo) python setup.py install
Just use the rspec "language".
See the minted package at http://minted.googlecode.com.
Pygments at the moment supports over 150 different programming languages, template languages and other markup languages. To see an exhaustive list of the currently supported languages, use the command:
$ pygmentize -L lexers
To get a list of all available stylesheets, execute the following command on the command line:
$ pygmentize -L styles
Please read the official documentation for further information on the usage of pygment styles.