Help & Support
Send Feedback
Code Blocks
Syntax highlighting for Google Docs
Alex Forsythe
304,593 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 automatic language formatting. To get these features, you will need to use a separate editor.
Reviews
A User of Code Blocks
April 17, 2019
Super helpful!
Submit reply
Cancel
A User of Code Blocks
April 11, 2019
Works great! Lots of configurable options and languages available.
Submit reply
Cancel
A User of Code Blocks
April 8, 2019
Pretty cool. Definitely better than nothing, but indentation is still annoying even with this. Would be nice if it kept you in your position when you hit enter, like in a code editor. Would be nice also if the tab key made indents.
Submit reply
Cancel
A User of Code Blocks
April 4, 2019
can we support JSX?
Submit reply
Cancel
A User of Code Blocks
March 24, 2018
Fantastic. More themes would be welcome!
Submit reply
Cancel
1-5 of 5
Additional information
Search
Clear search
Close search
Google apps
Main menu