diff --git a/codetab.ts b/codetab.ts index 6eb34fd..d06c3f7 100644 --- a/codetab.ts +++ b/codetab.ts @@ -301,7 +301,6 @@ const drawCodeField = (code: string, x: number, y: number, w: number, h: number) fillRect(x+anchorX*fontWidth-scrollX, y+anchorY*(fontHeight+1)-scrollY, fontWidth+1, fontHeight+1, COLOR.GREEN); fillRect(x+focusX*fontWidth-scrollX, y+focusY*(fontHeight+1)-scrollY, fontWidth+1, fontHeight+1, COLOR.YELLOW); } - // TODO: Add syntax highlighting use "npm:js-tokens" maybe? const tokens = [...tokenize(code)]; let cx = 0; let cy = 0;