highlight-json.js 249 B

1234567891011
  1. // This file will highlight the passed code using the custom theme when run via: "node highlight-json"
  2. var cardinal = require('..');
  3. var json = JSON.stringify({
  4. foo: 'bar',
  5. baz: 'quux'
  6. });
  7. console.log(cardinal.highlight(json, {json: true}));