Formatting code block in Google docs

In the last few days, I was looking for how to format a code block in my Google doc. After a few minutes I googled, I found a very useful Google Docs add-on Code Pretty. Just needs to select the code text you want to format and its “Format Selection” is pretty nice. The only con is that you cannot choose the programming language you want to format.

code-pretty

Another solution I found is an on-line syntax highlighter at http://markup.su/highlighter/
Just copy and paste into your document. Easy.

Additional source:
http://webapps.stackexchange.com/q/19241/60003

Advertisements

6 thoughts on “Formatting code block in Google docs

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s