Syntax Coloring in Eclipse

143 views
Skip to first unread message

PixelMuncher

unread,
Jan 21, 2011, 7:37:21 AM1/21/11
to python_inside_maya
I switched from jEdit to Eclipse, which is proving a good move.
Is there a way to color Maya commands?
Thanks.

Matt Estela

unread,
Jan 22, 2011, 4:40:09 PM1/22/11
to python_in...@googlegroups.com
Last time I looked defining syntax files for eclipse was way more complex than I expected. Just searched again, someone on stack overflow suggested this plugin to help get things setup:

http://www.eclipse.org/Xtext/

-matt



Christian Åkesson

unread,
Jan 23, 2011, 2:11:38 AM1/23/11
to python_in...@googlegroups.com

sh...@pyrokinesis.co.nz

unread,
Jan 23, 2011, 2:17:40 AM1/23/11
to python_in...@googlegroups.com
That plugin is probably not what you want. I have found a few others as
well but they all force you out of pydev, which for me is not desired.
Because I want to use pydev I have started a feature request ticket via
the pydev site.

https://sourceforge.net/tracker/index.php?func=detail&aid=3119380&group_id=85796&atid=577332#

Feel free to add to the ticket or create your own, it would be awesome if
pydev started supporting commands.

> --
> http://groups.google.com/group/python_inside_maya
>


--
Shaun Friedberg
04-902-0443
http://www.pyrokinesis.co.nz
"Fire Is Fun, When You Think About It"

PixelMuncher

unread,
Jan 23, 2011, 11:31:18 PM1/23/11
to python_inside_maya
I've already followed the instructions in "Making Eclipse
Soar" (although I didn't add Perforce nor the PyQT stuff).
Xtext looks too complicated.
I also found the Colorer-take5 library at http://colorer.sourceforge.net/.
I contacted Igor Russkih, the author, who told me it could be used to
accomplish this task, but I'm not a "real" programmer, so there's no
way I could pull it off in a reasonable amount of time. His reply
was:

"Sure you can do this.
EclipseColorer distribution contains packed syntax description - you
can extract and review them.
You need net.sf.colorer_0.9.1/colorer/hrc/common.jar:base/python.hrc
As a most simple modification, there you'll find a listing of keywords
like <word name="ImportError"/>
Adding your own keywords (and then updating the common.jar file) will
eventually give you these keywords highlighting in python.
For more info, you may refer hrc-reference on colorer's site."

Maybe it would be worthwhile for one of you guys in a studio to look
into this?

Felix Ulber

unread,
May 2, 2012, 4:16:34 AM5/2/12
to python_in...@googlegroups.com

Justin Israel

unread,
May 2, 2012, 10:39:30 AM5/2/12
to python_in...@googlegroups.com, python_in...@googlegroups.com
Is this a 1 year old thread or am I reading this wrong? Ha
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe

Felix Ulber

unread,
May 2, 2012, 11:57:54 AM5/2/12
to python_in...@googlegroups.com
Arghhh... right. Sorry, used some email filtering so it appeared way up,
didn't look at the date...
Reply all
Reply to author
Forward
0 new messages