Help & Support
Send Feedback
Code Blocks
Syntax highlighting for Google Docs
796,985 users
Works with
Install
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.
Reviews
A User of Code Blocks
January 9, 2020
I've only used it for javascript so far. The highlighting works well. My only complaint is the indentation; there isn't any.
Submit reply
Cancel
A User of Code Blocks
January 9, 2020
Really nice look
Submit reply
Cancel
A User of Code Blocks
January 6, 2020
Lots of missing functions in R
Submit reply
Cancel
A User of Code Blocks
December 19, 2019
why code blocks does not appear in add-ons, after I installed it? How can I use it ?
Submit reply
Cancel
A user of Code Blocks
December 20, 2019
bruh you have to click the add on button smh
A User of Code Blocks
December 18, 2019
First thing I install when I join a new organization. Helps me write easy to read documentation.
Submit reply
Cancel
A User of Code Blocks
December 17, 2019
yess! I love it. so handy
Submit reply
Cancel
Siobhan Gibson
December 11, 2019
Mostly good, with a few frustrations. I edit documents that are authored in markdown. This is a useful tool to highlight markdown syntax in a google document, but it removes all existing comments, and if I apply some changes, highlight the changed text and click "Format" again, sometimes the tool replaces my whole page with just the highlighted area. This usually happens when I'm changing tables markdown. Otherwise, this is a useful way to make editing documents faster!
Submit reply
Cancel
A User of Code Blocks
December 11, 2019
It's dooooog slllllooooowwww, even for 2-line code snippets, but it has a bazillion language and color scheme options - so many, in fact, that navigating them becomes a real pain in the butt. What i would really like to see (aside from improved performance), is some way to bookmark formats or to have a "recently used" list added, which combines the recently-used language/theme pairs, so that we don't have to spend so much time adjusting both extremely long selection lists back and forth between the formats we use.
Submit reply
Cancel
A User of Code Blocks
December 9, 2019
Great APP
Submit reply
Cancel
A User of Code Blocks
December 7, 2019
Great, would just like a choice in font and/or font size.
Submit reply
Cancel
Neil Kolban
January 6, 2020
Me too for font size.
1-10 of 104
Additional information
Search
Clear search
Close search
Google apps
Main menu