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.
Highlight only the specific parts you want your audience to focus on. Presenting code on your slides usually results in a wall of text. Highlight only the specific parts you want your audience to focus on. Presenting code on your slides usually results in a wall of text.
Open Google Docs and create a new document. With the document open, click Add-ons and select Code Blocks from the menu. A new right sidebar will open (Figure A), where you can make use of the tool. Code Blocks is installed and ready to go.
An on-line syntax highlighter:
http://hilite.me/
Just copy and paste into your document.
http://www.tohtml.com/ created syntax highlighted HTML code for lots of languages. It might be what you're looking for.
If you're using Visual Studio (this might work in Eclipse also, but I never tried) and you copy & paste into Microsoft Word (or any other microsoft product) it will paste the code in whatever color your IDE had. Then you just need to copy the text out of word and into your desired application and it will paste as rich text.
I've only seen this work across Visual Studio to other Microsoft products though so I don't know if it will be any help.
With the new Add-Ons for Google Drive, you can get code highlighting with the Code Pretty add-on.
I've also thought of this. Finally, my solution is to use github gist. Don't forget it also has highlight functionality. Just copy it. :)
Just a few suggestions:
If you write your code in emacs then you might be interested in the htmlize elisp package.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With