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...!
LibreOffice Writer has an extension called Code Highlighter 2.
https://extensions.libreoffice.org/en/extensions/show/5814
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!
An example of the kind of behaviour I'm after is at the top of this issue: https://github.com/splicebox/PsiCLASS/issues/41
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.