I am not even sure if this is the correct way to do it or not so I will give some background information.

I want to create an application that works in a similar way to the firefox view selection source “thing”. Ideally I would like to be able to highlight some code on a webpage and then save it to a database.

1. Is this possible to do?
2. Best way of doing it and rough cost estimates as I don’t have the ability to code it myself.