Help & Support
Send Feedback
Code Blocks
Syntax highlighting for Google Docs
759,349 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
December 7, 2019
Great, would just like a choice in font and/or font size.
Submit reply
Cancel
A User of Code Blocks
November 27, 2019
Please add more languages (eg. typescript react).
Submit reply
Cancel
Pablo Pinargote
November 24, 2019
Great tool, and also it is the only one available !!!
Submit reply
Cancel
A User of Code Blocks
November 20, 2019
Need a shortcut and there is (dare I say it?) too much choice, I just want a simple python style but I have to look through hundreds, a quick preview would be ace.
Submit reply
Cancel
A User of Code Blocks
November 19, 2019
Exactly what I needed! Would've been nice to see a preview of how every formatting / style looks
Submit reply
Cancel
A User of Code Blocks
November 4, 2019
Really useful although basic in features. Some features it could really use: - Keyboard shortcut - Save/pin/indicate favourite themes from list - Adjust font-size - Numbered lines
Submit reply
Cancel
A User of Code Blocks
November 4, 2019
yess
Submit reply
Cancel
A User of Code Blocks
November 1, 2019
Great, just needs a shortcut key. If it already autodetects language, then opening a menu just to click "Format" seems like it could be reduced to a hotkey.
Submit reply
Cancel
A User of Code Blocks
October 25, 2019
Very useful
Submit reply
Cancel
A User of Code Blocks
October 25, 2019
Definitely need some more tuning, like font size, for example. Shortcut would improve it a lot!
Submit reply
Cancel
1-10 of 120
Additional information
Search
Clear search
Close search
Google apps
Main menu