romannurik / SlidesCodeHighlighter

A little web app that helps you copy+paste syntax-highlighted code into slide decks.
https://romannurik.github.io/SlidesCodeHighlighter/
Apache License 2.0
1.06k stars 92 forks source link

Pasting into Google Slides only preserves colors, neither font nor font size, and inserts very wide spaces between lines #41

Closed leventov closed 4 years ago

leventov commented 4 years ago

image

image

Am I doing something wrong? Is there a special way in how the code should be copied from the webapp to Google Slides?

romannurik commented 4 years ago

For fonts, you'll need to enable the fonts in Slides first (IIRC it's called "More Fonts...")

For line spacing, this can be finicky... I tend to adjust it in Slides after pasting.

For font size, Slides does a conversion from px to something like pt. There's a bug open around that and I've considered having the field let you control the final type size vs the size in pixels :-/

leventov commented 4 years ago

Thanks for help!