Settings

Theme

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

1 points by mbeavitt 7 months ago · 6 comments · 1 min read


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...!

nogajun 7 months ago

LibreOffice Writer has an extension called Code Highlighter 2.

https://extensions.libreoffice.org/en/extensions/show/5814

  • mbeavittOP 7 months ago

    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!

mbeavittOP 7 months ago

An example of the kind of behaviour I'm after is at the top of this issue: https://github.com/splicebox/PsiCLASS/issues/41

pacifika 7 months ago

Like A visual html editor?

  • mbeavittOP 7 months ago

    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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection