News for hackers. Stuff that matters.
Re:Compose with Markdown in Google Docs by iamevn on Tuesday March 29, 2022 @08:43PM (#30850248)
When I was at Google, we used an addon to do that. I think it might be this one? Not sure since there was a separate addon repo with internal and specific whitelisted addons.

https://workspace.google.com/marketplace/app/code_blocks/100... https://github.com/alexwforsythe/code-blocks

Re:Compose with Markdown in Google Docs by kappattack on Wednesday March 30, 2022 @05:01AM (#30852886)
This is what I used in college. It works great, but its much slower and more tedious to use compared to markdown code blocks. At one point I switched from using google docs to using the export to pdf feature on a static site generator because I was writing documents with a ton of code blocks and inline code formatting. It saved me a ton of time highlighting code and clicking about in the side panel.

I know there are LaTeX addons that let you do things like $$\frac{1}{2}$$ and then render the entire document. Makes me wonder what it would take to do something similar for code.

Re:Compose with Markdown in Google Docs by slashvar2701 on Wednesday March 30, 2022 @10:05AM (#30855395)
When I need formated code in docs or slides, I use the copy/paste with style capability of browsers. It works from rendered content but also from IDE.