thurloat ๐Ÿ“Œ is a user on mastodon.club. You can follow them or interact with them if you have an account anywhere in the fediverse.

Anyone know of a tool that will let me paste code into a word document and keep the syntax highlighting?

Because I was a bad person and am currently in hell, I have to document my code in a word document. But I also want the formatting to look nice.

thurloat ๐Ÿ“Œ @thurloat

@allan maybe could use an online prettifier in JS that uses inline styles, then copy/paste the whole <pre>/<code> block. Pretty sure word tries to preserve HTML formatting.

ยท 0 ยท 2

@thurloat @allan Along the same lines, you can also just use the commandline interface for Pygments to spit out .html files for your source files that you can then open and copy-paste from.