Syntax Highlighting as a Service
Photon is a powerful, multiplatform, highly customizable and free syntax highlighter for the modern web.
Unique in its kind
Photon supports more than 300 languages.
Quantity or quality? Both
Instead of trying to find the language syntax using general regular expressions, Photon lexically analyzes the snippet to produce a much more complete and accurate highlighting, even when using the latest language features.
Photon ❤ Your stack
You can highlight code on the client-side or the server-side. Photon works everywhere.
What makes Photon different?
You can use Photon inside your current environment, we do not force you to use any particular stack. We offer libraries for the most used languages and platforms. Also, you can highlight code by just making an HTTP call to the API.
You are the owner of your code. You do not have to upload your code to any website that may disappear tomorrow. Regain control of your content.
We have created a complete collection of easy to use plugins that provide expressiveness and readability to your code snippets.
Improve the visual appearance of your code with more than 40 awesome themes availables. You can also create your own themes or modify existing ones! Total freedom.
We respect and value the web standards and all the code that we generate is done in the most correct way possible. From HTML tags to CSS rules.