I have XML in Sublime Text 3 and I would like to use it as an example in Google Slides. The issue is when you copy the text you end up with plain text, I would like to keep the syntax highlighting as it makes it much easier to read. Is this possible? Is there some Sublime package I need?
Just move the cursor to the line you want to copy and Ctrl-C (Cmd-C on Mac). Do not select the line, just stay on it. Then paste it anywhere you want to paste, and it will insert a new line before the one your cursor is on, with the previously copied text.
4.0. Sublime Text contains a custom HTML and CSS engine, named minihtml, for displaying stylized content in editor panes. HTML content can be displayed in both popup windows and phantoms.
Open the package control to install a package (Ctrl/Cmd + Shift + P):
Look for Highlight
and click it:
Done! You can now right click some text and copy it as RTF:
Then you can paste that in Google Slides, PowerPoint, Word, Outlook, whatever you like.
I use CopyAsHtml
pakage. It is better than SublimeHighlight
pakage. You can install it according to what MS Berends said above.
CopyAsHtml
pakage keeps sublime coloring exactly.
It will add another copy as HTML
in your right click as you can see below.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With