Documentation can be found here: http://docs.python.org/library/webbrowser.html
(found using a simple google search for "python webbrowser").
I'm not sure you really need to investigate much here, James did all the hard work. Maybe try something like this, which will open any urls you have selected (in your default web browser):
- Code: Select all
import sublime, sublime_plugin
for region in self.view.sel():
if not region.empty():
url = self.view.substr(region)