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
Reviews
Language:
Sort by:
Google doesn't verify reviews or ratings. Learn more about reviews
Profile Picture
Tangent Q
August 21, 2026
so unstable, a lot of times it just does not want to work for a ridiculous amount of unique reasons like I'm playing whack-a-mole...
Is this review helpful?
Yes
No
Profile Picture
Eric Bewley
August 22, 2026
Unable to get it to do anything successfully on clicking the "Format Code" button. I was really hoping it would work, because it has the best privacy documents I've ever seen. Uninstalling and reinstalling didn't work. Granting it additional permissions didn't work either. It always responds with "Something went wrong -- your document was not changed. Try again."
Is this review helpful?
Yes
No
Profile Picture
Ivan P
June 1, 2026
Sadly google has discontinued the architecture and slowly rolled to active accounts. I've been using it for years to learn to code. Was really sad to see it stop working today.
Is this review helpful?
Yes
No
Profile Picture
Ellen Meiselman
June 10, 2026
Code blocks has been my go-to for a long time, but it stopped working today. So I tried asking Gemini to do the formatting and syntax coloring instead. It worked well, but may not be available or preferable for everyone. Thank you Alex for providing this much needed extension for years!
Is this review helpful?
Yes
No
Profile Picture
crescent Compe
March 7, 2026
Google doc can't provide a simple built-in code block and I have to give out my info to a 3rd addon for code block. How did we reach such a regard timeline for everything?
Is this review helpful?
Yes
No
Profile Picture
Jonathan Tran
June 3, 2026
I have been using Code Block for awhile now, but it seems it has stopped. This is one of the best extensions ever. Alex if you could fix it will be much appreciated.
Is this review helpful?
Yes
No
Profile Picture
Audel Moradi
June 2, 2026
This was an excellent extension. Unfortunately, Google says they have deprecated the Rhino architecture which prevents this extension from running. I really love this extension...
Is this review helpful?
Yes
No
Profile Picture
aktive
October 14, 2025
I always wait to use a tool for a a few months before writing a review. I've used this across several platforms/browsers, with big, ugly complex code in page-less mode and it's tackled it like a champ. Plenty of language and customization options, but the default templates are great so I barely needed to spend any time configuring it. An easy 5/5, thanks Alex.
Is this review helpful?
Yes
No
Profile Picture
John Lewis
January 21, 2026
Alex, thank you for your contribution. I haven't really used Code Blocks yet, but I will soon. Please, add the Unset language. I'm told it is safest for Google Sheets-specific syntax. I want to save formulas inside of code blocks in Google Docs. Also, I'm told Javascript works for this purpose, yet I don't know why Unset is classified as "safest". Thanks, again! God bless you!
Is this review helpful?
Yes
No
Profile Picture
André Dornelles
June 5, 2026
It was definitely great while I used it, sad to understand the situation just now
Is this review helpful?
Yes
No
1-10 of 154
Search
Clear search
Close search
Google apps
Main menu