Hacker News new | ask | show | jobs
by skeledrew 159 days ago
Have you tried literal examples?

https://orgmode.org/manual/Literal-Examples.html

1 comments

Thanks! I had actually seen that, but didn't realize that org does remove the leading comma when you extract a block to paste it somewhere else, which is great, because it means I need one less function.

Now I just need to keep my paste function, but have it add a leading comma instead of a space, and I need to use example instead of src (not a problem for this use case since, even though I normally paste them into sql src blocks, the syntax highlighting isn't that useful.

You gave me a nice little task for a rainy day, thanks :)