Sources of medit are tracked using mercurial, repository is located at http://bitbucket.org/medit/medit/src. You can browse it online, or you can check out a copy using command:
hg clone https://[email protected]/medit/medit
Or get a tarball here.