MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / makeAnsiToHtml

Function makeAnsiToHtml

static/panes/output.ts:43–50  ·  view source on GitHub ↗
(color?: string)

Source from the content-addressed store, hash-verified

41import {Pane} from './pane.js';
42
43function makeAnsiToHtml(color?: string) {
44 return new AnsiToHtml.Filter({
45 fg: color ? color : '#333',
46 bg: '#f5f5f5',
47 stream: true,
48 escapeXML: true,
49 });
50}
51
52export class Output extends Pane<OutputState> {
53 contentRoot: JQuery<HTMLElement>;

Callers 1

constructorMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected