After a fair bit of looking, I have not been able to find any way for
Python IDEs to work with .sage files. (Let alone integrating  the Sage
engine.) This strikes me as an incredibly important problem. (My
apologies if there is some approach I've overlooked.)
While obviously not a perfect solution, I've worked out how to get
syntax highlightning for Sage in Kate, the KDE editor. (I personally
have little experience with Gnome.) I wanted to mention how I did this
in case it helps anyone else. (I'm using Kde 4.2 and Kate 3.2)
Download the file
www.cs.uwaterloo.ca/~ggdhines/sage.xml
into the directory ~/.kde/share/apps/katepart/syntax/ or the global
directory $(PREFIX)/share/apps/katepart/syntax/
You may need to restart Kate after doing this. You can now choose Sage
highlightning from tools->Highlightning->Scripts

To avoid having to do this every time, you can set this up to be the
default highlightning for Sage files by doing the following:
Go into configure Kate and choose open/save under "editor component"
and then "modes filetypes". Create a new file type "scripts/sage" and
under variables enter
kate: presave-postdialog python-encoding

For highlightning, choose Sage and file extension choose *.sage and
then enter apply/ok

BTW the sage.xml file was copied completely from the python.xml file.
I haven't made any changes so this will probably not be perfect. I
welcome any suggestions but I'm busy enough right now that I will have
little if any time to make other improvements.

I hope this helps,
Greg


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to