Syntax highlighting for Google Docs™
Listing updated:June 10, 2026
Works with:
6M+
Overview
Code Blocks makes it easy to put your code into Google Docs™. Simply select some text, click the "Format" button, and it will be formatted with the color theme of your choice.

Features:
• One-click syntax highlighting
• Automatic language detection (or choose it yourself)
• Lots of color themes
• Format code inline or as blocks (1x1 tables)
• Preview changes before updating your document

Enjoy!

ℹ️ Code Blocks does not provide real-time syntax highlighting or code formatting. To get these features, you will need to use a dedicated code editor.
Additional information
PricingFree of charge
Developer
Privacy policy
Terms of service
Code Blocks will ask for the permissions shown below. Learn more
Code Blocks will need access to your Google account
This will allow Code Blocks to :
View and manage documents that this application has been installed in
Allow this application to run when you are not present
View and manage data associated with the application
See your primary Google Account email address
See your personal info, including any personal info you've made publicly available
Loading
Search
Clear search
Close search
Google apps
Main menu