Sublime Forum

Copy/save with syntax highlighting format

#1

Is it possible to copy or save a file to include the syntax highlighting format? Sometimes it would be very useful to preserve colors, rather than just text-only copy.

Examples include:

  1. pasting a section of code to a Word .doc
  2. publishing code to a webpage or email
  3. printing code with colors
0 Likes

Copy text with highlighted colors
#2

You can do it with andre-simon.de/doku/highligh … light.html.

0 Likes

#3

That seems a nice piece of software. Still, a plugin for ST would be nice.

0 Likes

#4

I agree. Especially printing from within ST would be great.

0 Likes

#5

I would very much like to see this functionality.

See Copy text with highlighted colors (in Ideas and Feature Requests) for related discussion.

0 Likes

#6

See: github.com/n1k0/SublimeHighlight Installable as Highlight from package manager.

0 Likes

#7

Also see ExportHTML (my favorite): github.com/facelessuser/ExportHtml

0 Likes

#8

There are a number of differences between the two packages, the main one being that **ExportHtml **can keep your ST theme colours. **SublimeHighlight **uses the *Pygments *online feature. But, of course, I’m slightly biased :wink:

0 Likes

From Sublime to Word keeping style