function highlight(code, options) {
    if (options === void 0) { options = {}; }
    var html;
    if (options.language) {
        html = hljs.highlight(options.language, code, options.ignoreIllegals, options.continuation).value;
    }
    else {
        html = hljs.highlightAuto(code, options.languageSubset).value;
    }
    return colorize(html, options.theme);
}
Apply syntax highlighting to `code` with ASCII color codes. The language is automatically
detected if not set.

```ts
import {highlight} from 'cli-highlight';
import * as fs from 'fs';

fs.readFile('package.json', 'utf8', (err: any, json: string) => {
    console.log('package.json:');
    console.log(highlight(json));
});
```

@param code The code to highlight
@param options Optional options