Sublime Forum

Pasting rich text to html

#1

So when I copy a block of text from the internet into my textedit app on Mac OSX, it renders the text according to the html formatting.
Is it possible to paste the copied block into sublime text and get the html code? (I know I can open a web dev console in a browser and copy the html code from there).
There are online tools for this (like this one, but I’m wondering if Sublime Text can do it.
I searched around for a package but couldn’t find anything.
Any ideas?

0 Likes

#2

It should be possible to write a plugin that reads from the macOS clipboard and writes the html to the text sheet if it’s saved as such in the clipboard.

1 Like