Every line of 'print code in html' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
30 export function PrintCode(code: string) { 31 const codeWithLine = code.split("\n").map((c, i) => `${i + 1}\t${c}`).join("\n"); 32 console.log(`DIEL Code\n%s}`, codeWithLine); 33 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code