Generate source code dropdown automatically