Ask HN: A word processor that allows you to insert code from GitHub

1 points by mbeavitt ↗ HN
I was just wondering if anyone had come across a word processor or word processor plugin that lets you use context, like you would on github with links to sections of code from a specific commit?I'm going to be doing a big writeup and this would save me some formatting headaches...!

6 comments

[ 6.1 ms ] story [ 28.4 ms ] thread
Like A visual html editor?
No, the desired behaviour is to follow a link to a github code section, e.g. https://github.com/splicebox/PsiCLASS/blob/04e2a118c1820f802... and then copy that into the editor with syntax highlighting and line numbers. I can copy it myself, but it would be nice to have a plugin to make things look nice. Additionally, it would be nice to preserve the link so that readers can jump straight to the relevant section of the codebase.
(comment deleted)