Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
Use "JavaScript" as language for TypeScript files
Browse files Browse the repository at this point in the history
The syntax highlighter we are currently using in CodeCTRL does not have
support for TypeScript syntax, so use JavaScript highlighting until it
is available. trishume/syntect#447
  • Loading branch information
STBoyden committed Nov 1, 2022
1 parent 16547a1 commit acf6394
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ export class Logger {
});

if (originalFileName) {
log.language = "TypeScript";
// whenever syntect gets support for TypeScript syntax highlighting, uncomment
// this for "TypeScript". For now, use default "JavaScript".
// log.language = "TypeScript";
fileName = originalFileName ?? fileName;
}

Expand Down

0 comments on commit acf6394

Please sign in to comment.