App Icon
Syntax highlighting for Google Docs
Works with:
2,525,703
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
• More to come...

Enjoy!

NOTE: Code Blocks does not provide real-time syntax highlighting or code formatting. To get these features, you will need to use a separate editor.
Additional information
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:
Profile Picture
A User of Code Blocks
December 1, 2017
First of all, I only trust this because it is Open Source (I discarded similar add-ons because I could not find the source or their development site). That's a big plus and something that other people have not mentioned in their reviews. Functionally, the add-on works very well and, perhaps, the only feature that I miss is the lack of line numbering. Other than that, it does what it says on the tin!
Is this review helpful?
Yes
No
Profile Picture
A User of Code Blocks
May 18, 2019
Hi, app is working really nice, like it :-) Nevertheless I'd like to suggest two enhancements: (1) Within the Add-ons menu, please insert a menu item to immediately perform formatting (using the current settings). Advantage: it’s then not necessary any more to have the big sidebar open all the time). (2) Please don’t wrap the text into a table, if the user has selected “No Background”. Advantage: Tab key is still working (if there’s no table), and handling of the text in general is easier.
Is this review helpful?
Yes
No
Profile Picture
A User of Code Blocks
January 12, 2017
It looks good and has nice features but the behaviour is erratic. Sometimes for the same block, it works perfectly and other times it does not fill the background or misses a lot of the syntax.
Is this review helpful?
Yes
No
Profile Picture
A User of Code Blocks
December 15, 2016
I just found this a couple of weeks ago and all I can say is THANK YOU! As a developer looking for a really quick and easy way to knock out documentation that I can readily share and allow others to contribute to Google Docs + this add on is amazing.I hope there is some way I can contribute something to the author for his work.
Is this review helpful?
Yes
No
Profile Picture
Jacob Christian
August 28, 2018
This is awesome. I've started to use this to make code blocks for my notes for C++ class. Alex, if you read this, is there a hotkey function? Where you can highlight and keyboard shortcut the command? If I'm taking heavy script notes, going back and forth takes a moment :)
Is this review helpful?
Yes
No
Profile Picture
A User of Code Blocks
February 24, 2018
Tremendous work - really helps writing clear and easy documents for others to read. Thank you so much for your hard work and effort. Much appreciated.
Is this review helpful?
Yes
No
Profile Picture
A User of Code Blocks
December 29, 2017
Looks good, I'm using it regularly. It asks for per-document permissions which is more reasonable that all the other ones I looked at. One star less since there doesn't appear to be a way to pick the font for the resulting formatted code block (it seems to default to Consolas? or is it my config? No idea). Thanks for the great work!
Is this review helpful?
Yes
No
Profile Picture
A User of Code Blocks
November 6, 2018
getting error, Couldn't get theme. for language: Python, theme: github... really painful as half of my text in one format and other half in other.
Is this review helpful?
Yes
No
Profile Picture
A User of Code Blocks
April 23, 2018
It itself is good However, if I keep adding more excerpts of code over time it will delete at random other code above it.
Is this review helpful?
Yes
No
Profile Picture
A User of Code Blocks
November 12, 2017
I absolutely love this add-on, super useful with a wide variety of themes to choose from. If it's within the scope of the project's future plans, I'd love to see generation of line numbers implemented.
Is this review helpful?
Yes
No
1-10 of 279
Search
Clear search
Close search
Google apps
Main menu