Code syntax highlighting on Word, PowerPoint, Writer, Spreadsheet etc.
You are working on Word, PowerPoint, Writer, Spreadsheet etc. and suddenly comes across on a situation where you have to put some HTML, PHP, Python or any other program codes with syntax highlighting.Selecting each and every keyword and changing color is sure not going to be the choice, especially when it comes to a large piece of code.
Here are two methods, which you can follow to get it done quickly:
Using Notepad++:
Notepad++ a source code editor tool + Notepad replacement. It is handy and must have tool for programmers.
- Copy paste the code on to Notepad++ or open up the file on it.
- Go to Plugins -> NppExport -> Copy all formats to clipboard
- Go to Word or what ever software on which you are preparing the document and click on Paste button.
Using Online syntax highlighting tool:
ToHTML is an online syntax highlighting tool which is easy to use.
- Copy paste the code on to ToHTML website.
- Select the programming language and click on the Highlight button.
- Select the highlighted code and copy it on to the clipboard. (By using Ctrl + C)
- Go to Word or what ever software on which you are preparing the document and click on Paste button.