Current File : //proc/self/root/usr/lib/node_modules/bower/lib/node_modules/cardinal/lib/highlightFileSync.js
var fs = require('fs')
  , highlight = require('./highlight');

module.exports = function highlightFileSync (fullPath, opts) {
  var code = fs.readFileSync(fullPath, 'utf-8');
  opts = opts || { };
  if (opts.json !== false && fullPath.match(/\.json$/i)) {
    opts.json = true;
  }
  return highlight(code, opts);
};