You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// This file will highlight the passed code using the custom theme when run via: "node highlight-string"
|
|
'use strict'
|
|
|
|
var cardinal = require('..')
|
|
|
|
var code = '' +
|
|
|
|
function add(a, b) {
|
|
var sum = a + b
|
|
return sum
|
|
} +
|
|
|
|
''
|
|
|
|
console.log(cardinal.highlight(code))
|