Google Code Prettify is a script provided by Google. It is created to be easily embeddable. It allows users to create source-code snippets with ease. Google Code Prettify is created to be small in size and provide efficient loading of pages when in use. It also provides several customizable styles and extensible language handlers. Google Code Prettify uses a simplified API that comes with JS and CSS. It is suitable for use on HTML pages, embedded links and line numbers, among others. It supports several programming languages such as Java, HTML, XML, CSS, SQL, Makefile, Bash, Rust and Python. It provides support for many other languages through the use of extensions.

794,002
websites using Google Code Prettify
Create a technology report →
Export with emails, socials, country, TLD and industry filters
Websites using Google Code Prettify by countrymarket share · top 8 countries
🇩🇪Germany
5.7%
🇺🇸United States
5.7%
🇷🇺Russian Federation
4.9%
🇯🇵Japan
4%
🇬🇧United Kingdom
3.3%
🇮🇹Italy
3.1%
🇫🇷France
2.9%
🇳🇱Netherlands
2.4%
0%1.5%3%4.5%6%
Websites using Google Code Prettify by industrydetected industries
Technology & Computing · 20%Construction · 18%Education · 18%Shopping · 17%Medical & Healthcare · 15%Real Estate · 13%MARKETSHARE
Technology & Computing20%
Construction18%
Education18%
Shopping17%
Medical & Healthcare15%
Real Estate13%

Websites using Google Code Prettify

showing 25 of 794,002
WebsiteCountryIndustrySizeFounded
Showing 25 of 794,002 websitesGet the full list →

Frequently asked

What is Google Code Prettify?
Google Code Prettify is a Javascript library that helps to style and format code snippets, making them more readable and visually appealing in web pages. It automatically detects various programming languages and applies appropriate styling, such as syntax highlighting, to make the code look better and easier to understand.
Which programming languages are supported by Google Code Prettify?
Google Code Prettify supports a wide range of programming languages, including but not limited to C, C++, C#, Java, JavaScript, Python, Ruby, PHP, SQL, HTML, and XML. The full list of supported languages can be found in the project's documentation.
How do I include Google Code Prettify in a web page?
To include Google Code Prettify in a web page, you need to add a reference to the Prettify.js script file and the Prettify.css stylesheet file in the header section of the HTML file. You can either download and host the files on your server or use the hosted versions provided by Google.
How do I apply Prettify to a code block in a web page?
Google Code Prettify can be applied to code blocks by adding the appropriate class to your code elements. The library will automatically apply syntax highlighting to make your code more readable.
Can I customize the appearance of the code snippets styled by Google Code Prettify?
Yes, you can customize the appearance of the code snippets by modifying the Prettify.css stylesheet file to suit your preferences. You can change the colors of various elements, such as keywords, strings, and comments, and adjust font sizes, line spacing, and other style properties to fit your website's design.

Get the free browser extension

Identify the technology stack of any website instantly, right from your browser.