Skip to content

nakajima/syntaxily

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

syntaxily

Syntax highlighting for strings and stuff.

Usage

Super simple usage:

“def foo; :bar end”.syntaxify(:ruby)

More advanced usage:

Syntaxily.parse <<-HTML
  <h1>Here's some code:</h1>
  <pre class="code" rel="ruby">def foo; :bar end

HTML

Credits

  • Uses the pygments library, and the Albino Ruby wrapper.
  • Parses syntaxable bits out of markup using Nokogiri.
  • Everything else by Pat Nakajima.

About

Syntax highlighting for strings and stuff

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages