Skip to content

Support for Microsoft Office PowerPoint #79

Description

@doggy8088

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> )

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions