Init
This commit is contained in:
commit
4e066bffc9
10017 changed files with 1322084 additions and 0 deletions
14
node_modules/cardinal/examples/highlight-string.js
generated
vendored
Normal file
14
node_modules/cardinal/examples/highlight-string.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// This file will highlight the passed code using the custom theme when run via: "node highlight-string"
|
||||
|
||||
var cardinal = require('..');
|
||||
|
||||
var code = '' +
|
||||
|
||||
function add (a, b) {
|
||||
var sum = a + b;
|
||||
return sum;
|
||||
} +
|
||||
|
||||
'';
|
||||
|
||||
console.log(cardinal.highlight(code));
|
||||
Loading…
Reference in a new issue