egui icon indicating copy to clipboard operation
egui copied to clipboard

Code samples in demo

Open emilk opened this issue 4 years ago • 1 comments

I thought something like this would be very nice to show to beginners:

code-samples

However, the clever macro tricks I use to get the source code excerpts have some problems: file!() gives us a relative path when running cargo check, but an absolute path when running cargo test.

I may have to look for another way to accomplish this.

emilk avatar Oct 09 '21 10:10 emilk

I've opened a topic about the file!() behavior at https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/file!.28.29.20output.20varies.20in.20condition/near/313877507

@emilk If you have any additions or additional discussion, I would be happy if you would join.

ryo33 avatar Dec 05 '22 10:12 ryo33