Registry / utility / syntax

syntax

JSON →
library1.2.2rbrubygemsunverified

Ruby library for performing simple syntax highlighting.

gem install syntax
INSTALL
IMPORT
SIG · SYNTAX
S
syntax
utilityrubyv1.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Syntax
require 'syntax'

Highlight Ruby code as HTML

require 'syntax' code = "def hello\n puts 'world'\nend" puts Syntax::Highlight.highlight(code, 'ruby')
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
syntax — gem install syntax · libregistry