Reputation: 118962
Is there any way I can get my Python code syntax highlighted in Microsoft Word?
Upvotes: 8
Views: 12397
Reputation: 377
Open or copy paste the code in Google-Colab . Copying from colab notebook does syntax highlighting.
Upvotes: 2
Reputation: 14669
Use a pastebin that does syntax highlighting, for example:
https://gist.github.com/anonymous/82cb7f691673e0147edf
Then copy and paste the syntax highlighted code into Word. Worked perfectly for me.
Upvotes: 13