Use Atom's syntax-highlighter from the command line.
npm install hl -g
Provides syntax highlighting for:
Open an issue or pull-request if we're missing a language you'd like to see!
hl index.js
hl main.rb
hl foo.m
hl package.json
You can also use unix pipes:
cat index.rb | hl --extension=rb --pipe
var hl = require('hl')
var out = hl('index.js', {
numeric: 'yellow'
})
console.log(out)
ISC