Editorialized tweets


Does anyone know how to implement editorialized tweets?

My company has a client that would like to implement 1 of 3 different examples they provided.

  1. https://medium.com/design-ux/ce87662270cf
    a. User can highlight any text they want to tweet and a twitter button will appear to let them do so.

  2. http://skift.com/2013/11/03/instagramming-across-americas-national-parks-in-1972/#1
    a. Content Author selects text to appear in a ‘tweet this’ box

  3. http://www.pewresearch.org/fact-tank/2013/10/16/12-trends-shaping-digital-news/
    a. Content Author selects text or multiple areas of text that have a twitter bird next to them allowing them to be tweeted.

Any ideas on how to implement any of those in code? I’ve searched but not having any luck.