0.01
No commit activity in last 3 years
No release in over 3 years
A plugin for the YARD documentation system that adds syntax highlighting for a wide variety of languages using the Pygments highlighter.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.1.0
~> 0.5.3
 Project Readme

yard-pygments

This is a plugin for the YARD documentation system that adds syntax highlighting for a wide variety of languages using the Pygments syntax highlighter.

Usage

Once the gem is installed, YARD should automatically load it. Then any block of code beginning with !!!lang that YARD doesn't recognize will be highlighted using Pygments if possible. Unless another highlighter is installed, in which case it might take precedence.

By default, YARD itself only recognizes Ruby. The full list of languages recognized by Pygments is available here. The names that will be recognized for these languages are listed under "short names".

Requirements

yard-pygments requires rb-pygments, which in turn requires Pygments itself. 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.