New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

yard-pygments

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yard-pygments

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

!!!sh
easy_install Pygments

Otherwise, it can be downloaded here.

FAQs

Package last updated on 25 Jan 2010

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc