Module: term Terminal adaptor

term Terminal adaptor

Source:
term.js, line 1

Methods

highlightText(src, lang) → {String}

Source:
term.js, line 10
Parameters:
Name Type Description
src
String The code
lang
String The language of the code
Returns:
The highlighted string
Type
String

printHighlight(code)

Source:
term.js, line 26
Parameters:
Name Type Description
code
String The code

setTheme Change the current used theme for highlighting(name)

Source:
term.js, line 34
Parameters:
Name Type Description
name
String The name of the theme