Casebash
Casebash

Reputation: 118962

Python Syntax Highlighting in Microsoft Word

Is there any way I can get my Python code syntax highlighted in Microsoft Word?

Upvotes: 8

Views: 12397

Answers (2)

Manojk07
Manojk07

Reputation: 377

Open or copy paste the code in Google-Colab . Copying from colab notebook does syntax highlighting.

Upvotes: 2

Steven Kryskalla
Steven Kryskalla

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

Related Questions