JavaScript mode
JavaScript mode supports a two configuration options:
jsonwhich will set the mode to expect JSON data rather than a JavaScript program.typescriptwhich will activate additional syntax highlighting and some other things for TypeScript code (demo).statementIndentwhich (given a number) will determine the amount of indentation to use for statements continued on a new line.
MIME types defined: text/javascript, application/json, text/typescript, application/typescript.
