SlidesCodeHighlighter
SlidesCodeHighlighter copied to clipboard
Support for Microsoft Office PowerPoint
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.
It because PowerPoint can't treat <pre> tag correctly.
I have workaround for this. I learned from Visual Studio Code.
- Replace
\nas<br> - Replace all the spaces as
 . - Wrap each line in the
<div>( don't use<pre>)
Another workaround: Paste to Word first, and from there to PowerPoint. You will probably need to reset line spacing, but otherwise it works.