How does the bundler.io website do syntax highlighting?

11 views
Skip to first unread message

Dave Hein

unread,
Mar 13, 2016, 5:33:12 PM3/13/16
to ruby-bundler
I like the syntax highlighting I see on the bunder.io website. Especially the highlighting for a (plaintext) command line session.

What is used to highlight code snippets? (I looked at the HTML and CSS for the site, but can't figure out how it is done.)

--
Dave Hein

Tim Moore

unread,
Mar 13, 2016, 5:47:00 PM3/13/16
to ruby-bundler
Hi Dave,

Bundler uses Middleman to build its website. You can find the source code here https://github.com/bundler/bundler-site

For syntax highlighting, it uses the middleman-syntax plugin, which in turn uses Rogue.


Hope that helps!

-- Tim

Dave Hein

unread,
Mar 13, 2016, 10:11:00 PM3/13/16
to ruby-bundler
Yes, that helps a lot. Thanks.

--
Dave Hein
Reply all
Reply to author
Forward
0 new messages