Ask HN: A word processor that allows you to insert code from GitHub
1•mbeavitt•6h ago
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...!
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.
nogajun•4h ago
LibreOffice Writer has an extension called Code Highlighter 2.
Ah, thanks, that looks cool. It's missing the core functionality I want though, which is to follow links to code on github. Maybe if this doesn't exist, I'll see if I can make something!
mbeavitt•6h ago