Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Microsoft Office PowerPoint #79

Open
doggy8088 opened this issue Nov 11, 2023 · 2 comments
Open

Support for Microsoft Office PowerPoint #79

doggy8088 opened this issue Nov 11, 2023 · 2 comments

Comments

@doggy8088
Copy link

doggy8088 commented Nov 11, 2023

The SlidesCodeHighlighter is not able to paste code with the right format into PowerPoint correctly.

When I paste code into it, it will become only 1 line.

image

It because PowerPoint can't treat <pre> tag correctly.

I have workaround for this. I learned from Visual Studio Code.

  1. Replace \n as <br>
  2. Replace all the spaces as &#160;.
  3. Wrap each line in the <div> ( don't use <pre> )
@mcejp
Copy link

mcejp commented Jan 22, 2024

Another workaround: Paste to Word first, and from there to PowerPoint. You will probably need to reset line spacing, but otherwise it works.

@romannurik
Copy link
Owner

Hi there, I'm not sure there's anything I can do here without access to PowerPoint - PRs welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@doggy8088 @romannurik @mcejp and others