News for hackers. Stuff that matters.
Re:Show HN: Ctxt.io – share context of whatever you see with... by gcr on Thursday March 23, 2017 @11:49AM (#13940825)
I don't think I quite get this. Everything I paste here shows up in plain text. It doesn't automatically do any syntax highlighting; it only seems to work if you're already copying rich text to begin with.
Re:Show HN: Ctxt.io – share context of whatever you see with... by rodw on Thursday March 23, 2017 @12:21PM (#13941196)
Here's an example. Using Chrome on OSX I did a quick `select-all` then `copy`, switched to the ctxt.io tab, gave the text area focus then `paste`. I ended up with this - https://ctxt.io/2/AAAAYGAfEw

I think "only works if you're copying rich text to begin with" is the kinda the point.

(I'm not affiliated with ctxt.io at all, just trying to understand it like you are.)

Re:Show HN: Ctxt.io – share context of whatever you see with... by kahseng on Thursday March 23, 2017 @11:53AM (#13940873)
I guess I have to do better on the value proposition. Yes, there are many other of pastebins that work on code or plaintext for syntax highlighting (which might be the use case you're thinking of), but there is virtually no solution that works on rich text. Pasting rich text into any of these solutions wouldn't work, and many times I would love to keep the styles and just make the content readable (e.g. tables, paragraphs, headers, stay the same etc.)
Re:Show HN: Ctxt.io – share context of whatever you see with... by H4CK3RM4N on Thursday March 23, 2017 @06:06PM (#13944789)
Does Sublime Text's syntax highlighting count as rich text for this?
Re:Show HN: Ctxt.io – share context of whatever you see with... by Nadya on Thursday March 23, 2017 @06:07PM (#13944800)
Not by default.

But you can install a plugin: http://monkeyhacks.com/post/sublime-text-3-copy-as-rtf-and-h...

Re:Show HN: Ctxt.io – share context of whatever you see with... by subtenante on Thursday March 23, 2017 @11:59AM (#13940941)
You can paste snapshots / screenshots. With mezer tools, I can do a quick Win S, two clicks, one paste, copy/paste the URL and you get https://ctxt.io/2/AAAA4MNyFw .
Re:Show HN: Ctxt.io – share context of whatever you see with... by clishem on Thursday March 23, 2017 @11:54AM (#13940890)
This. There's absolutely no formatting, and pictures don't get pulled if I simply copy & paste. E.g. https://ctxt.io/2/AAAAwO8FEw
Re:Show HN: Ctxt.io – share context of whatever you see with... by kahseng on Thursday March 23, 2017 @12:04PM (#13941005)
Which page did you do this on? You might need to use the browser extension for some pages. Some styles do not transfer without it. I can show you what it looks like with my browser extension if you let me know the URL you tried this on?
Re:Show HN: Ctxt.io – share context of whatever you see with... by ldjb on Thursday March 23, 2017 @12:20PM (#13941183)
Not the person you replied to, but it's this article:

http://www.pcgamer.com/why-the-creator-of-dwarf-fortress-is-...

I get similar results when copy&pasting.

Re:Show HN: Ctxt.io – share context of whatever you see with... by kahseng on Thursday March 23, 2017 @12:23PM (#13941215)
This is how it looks with the extension used: https://ctxt.io/2/AAAA4BMMFw

Still needs fixing some image proxying bugs, will work on it, thanks!

Re:Show HN: Ctxt.io – share context of whatever you see with... by jInflux on Thursday March 23, 2017 @12:08PM (#13941043)
Same for me, copying out of a variety of editors/IDEs and it doesn't retain the font/syntax highlighting at all.
Re:Show HN: Ctxt.io – share context of whatever you see with... by kahseng on Thursday March 23, 2017 @12:10PM (#13941063)
Does your IDE/editor support copying out as rich text? The ones I tried did and it worked. Maybe there's a setting for copying out with styles. If not, this isn't a use case I've primarily worked on yet, but I can try to support it later.
Re:Show HN: Ctxt.io – share context of whatever you see with... by wjoe on Thursday March 23, 2017 @01:35PM (#13941998)
I can't see any such option in Atom, Sublime, or Eclipse to copy as rich text.

To be fair I didn't really expect it to work with automagically copying the syntax highlighting from my IDE, but it made it sound like it could.

It's definitely a useful project, and surprising that nothing else like it exists, but may be worth making it clearer that it's designed for rich text, and may or may not work with formatting when pasting for various programs.

Re:Show HN: Ctxt.io – share context of whatever you see with... by kahseng on Thursday March 23, 2017 @10:54PM (#13946236)
Re:Show HN: Ctxt.io – share context of whatever you see with... by kahseng on Thursday March 23, 2017 @01:45PM (#13942123)
Fair, I think I extrapolated too eagerly. Will think of a solution, including dropping the code use case. Terminal and web based output works at least.