"Copy as HTML" for Brackets
Copy code to the clipboard with full color syntax highlighting preserved (assuming you're pasting into something that supports HTML-formatted text, such as Outlook or GMail). Works with any language Brackets supports.
To use, choose Edit > Copy as Colored HTML. Due to runtime limitations, you still must explicitly press Ctrl+C on the next screen to place the text onto the clipboard.
If you have some text selected, you'll get just that text. If you have no selection, you'll get the entire file.
How to Install
Copy as HTML is an extension for Brackets, a new open-source code editor for the web.
To install extensions:
- Choose File > Extension Manager and select the Available tab
- Search for this extension
- Click Install!
License
MIT-licensed -- see main.js
for details.
Compatibility
Brackets Sprint 15 or newer (or Adobe Edge Code Preview 2 or newer).