Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Tom Hill14,232 Points
How can I create a medium.com style highlight function?
Hi! I couldn't work out - or find any resources, on how to create the highlighting thing they do on medium.com
To clarify: When you highlight a selection of words in an article, a little tooltip pops up with the option to tweet or comment on the selection of words you highlighted.
I have no idea how to achieve this (and I can't work it out from the medium.com source)
Any help is appreciated!
Thanks, Tom Hill
James Barnett39,199 Points
It's a non-trivial feature, for starters to add comments you'll need to use a backend language (like Ruby or PHP) to store the comments in database, so that other people can see them.