You can try a workaround : create a symbolic link to your file and give it a .py extension. Spyder should recognise it as a python file.
For spyder it would be nice to be able to force the file type in a menu somewhere. Le jeudi 28 novembre 2013 00:01:36 UTC+1, Fede Dronkit a écrit : > > Hi! I'm new to spyder and almost new to python. > > I chose spyder as an IDE for linux, and I need to debug some errors in an > installed program called phonopy (you can google it). > > It's installed at /opt/phonopy and its scripts are owned by root, with run > permissions, and don't have the .py extension. I have read and execute > permission (though also tried to run spyder as root to get write permission > and have the same issue). > > The issue is I open the executable script phonopy-qha (no .py extension) > on spyder and I get no syntax highlighting and the run and create > breakpoint options are all grayed out. > > Can't spyder work on files without the .py extension? Can I make it work? > > BTW my version is 2.1.9 > > Thanks! > -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/spyderlib. For more options, visit https://groups.google.com/groups/opt_out.
