First time here? Check out the FAQ!
1

Is there a way to copy and paste color-coded source?

Hi,

If I'm sending an email with Python source from a Wing project ; or copying and pasting some of the code into Documentation - is there a way to paste the syntax highlighting & coloring?

In other words, if I copy and paste code from the IDE now, it will past as text. I'd like to paste it the way it appears, in the Wing IDE.

Is that possible?

wpCurious's avatar
61
wpCurious
asked 2020-03-23 10:25:56 -0500
Wingware Support's avatar
4k
Wingware Support
updated 2020-03-23 14:13:00 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

No, unfortunately this isn't possible.

Wingware Support's avatar
4k
Wingware Support
answered 2020-03-23 14:15:20 -0500
edit flag offensive 0 remove flag delete link

Comments

Ok. Image Capture, it is.

Tangentially related, there's a Sql Formatter called SqlInForm. It has an option to format, then Copy and Paste Color-highlighted Sql into an email or Word document.

Maybe there's some way to do this with Python Code, programmatically. I'll think about it, a bit.

wpCurious's avatar wpCurious (2020-03-23 19:09:36 -0500) edit

We use Pygments https://pygments.org/ to get Python syntax highlighting in the documentation. Maybe that will help.

Wingware Support's avatar Wingware Support (2020-03-23 20:19:22 -0500) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer