Cool that I'll have to give a shot.
Hi,
I was not able to find a syntax coloring definition for gcode in gtksourceview (gedit) so I made one.
It helps me when I´m reading through my gcode so I thought It might help others if I shared it..
it´s far from perfect, but it´s a start
http://dl.dropbox.com/u/22370817/ngc.lang
drop it in either .gnome2/gtksourceview-2.0/language-specs/ or /usr/share/gtksourceview-2.0/language-specs/
Henrik
Last edited by henrikw; 03-02-2011 at 05:20 PM. Reason: Added lang file to original post in case the dropbox file goes down.
Cool that I'll have to give a shot.
CNC: Making incorrect parts and breaking stuff, faster and with greater precision.
This adds a menu item but doesn't seem to do anything else![]()
Did you upload the wrong file or is it a work in progress ? Maybe it's something I'm doing wrong ?
Anyone who says "It only goes together one way" has no imagination.
Hmm.. no, it is the same file I´m using.
What file suffix do use? the files supported now is "*.ngc;*.nc;*.cnc;*.tap", but it is very easy to add more.
Henrik
There are a couple of others available.
one from the linuxcnc wiki
EMC Documentation Wiki: Highlighting In Gedit
and another from the inkscape gcode developer (Gcode tools)
cnc-club.ru •
They look rather easy to customize with a bit of knowledge of regular expressions. I'd like to see one that has separate colors for letters X,Y and Z as seen in some other gcode editors.
Anyone who says "It only goes together one way" has no imagination.
wow, and I thought I did a thorough search for this before I made my lang filethey both look way better than mine.
This should really be a part of the ubuntu-distro available at linuxcnc.org
H.
Yep, simple and helpfulnice! too bad it's hidden away like that.
I'm working on a script to make it easier to install such "features" on a vanilla emc2 ubuntu.
Any tips on features that will be helpful? what are the first thing you do after a fresh install?
Henrik