First Commit
This commit is contained in:
15
html/sternwarte/checkfuehrung/node_modules/cardinal/examples/highlight-string.js
generated
vendored
Executable file
15
html/sternwarte/checkfuehrung/node_modules/cardinal/examples/highlight-string.js
generated
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
// 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))
|
||||
Reference in New Issue
Block a user