Paste some source code
Paste some source code

Tip. This tool only highlights syntax for readability — it does not check whether your code compiles or runs correctly. Pick the language that matches your code for the most accurate coloring; if you're not sure, "Plain text" simply shows the code as-is. This tool bundles the open-source Prism.js library (MIT License) locally, so highlighting still happens entirely in your browser.

How to use this tool

Related tips

Related