Files
sternwarte_server/html/sternwarte/checkfuehrung/node_modules/cardinal/examples/highlight-string.js
2025-11-02 22:52:08 +01:00

16 lines
265 B
JavaScript
Executable File

// 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))