yard-pygmentsrb
This gems borrows code from nex3's yard-pygments
yard-pygmentsrb enables the nice Pygments syntax highlighting in YARD, through pygments.rb.
Usage
Install the gem
gem install yard-pygmentsrb
Write some code blocks in your documentation
def __call__(self, mom):
pass
Tell YARD to generate docs using the plugin
yard --plugin pygmentsrb
And if you want YARD to always use it, write the --plugin pygmentsrb
line to your
.yardopts
file
Requirements
None.
Obviously this gem requires YARD and pygments.rb, so you should have their requirements met.