I'd like to embed a link to a file in say Python code, is there a way to let emacs know to look for org style links outside of org files? Or is there a better way of achieving this? Cheers
An Org mode link is just text (although its appearance may be modified using text properties), so you can add it to any text file, including a python file:
def main(options, args): # [[file:/path/to/some/file][some file]] print options print args return 0
For external links, you can open the link using
M-x org-open-at-point. Internal links probably will not work: they probably require that the underlying buffer is an Org mode buffer. This is just a guess however, so feel free to amend the answer if your experiments prove otherwise.
Unless you muck around with text properties in the python buffer, it just won't look pretty, but it will (mostly) work.