Gedit high lighting

More
21 Sep 2017 04:32 #99194 by 64dodge
Gedit high lighting was created by 64dodge
I use cimco edit at work every day and like its high lighting. I have gedit set for ngc but is there a setting to high light code like cimco edit. X Y Z G M F codes different colors.

Thanks
Tim

Please Log in or Create an account to join the conversation.

More
21 Sep 2017 12:42 #99204 by Todd Zuercher
Replied by Todd Zuercher on topic Gedit high lighting
I am pretty sure you can do that. I haven't been using Gedit for a while, and I do not remember how to set it up. A quick google search for "highlighting Gedit" should quickly get you an answer.

Please Log in or Create an account to join the conversation.

More
22 Sep 2017 08:05 #99244 by cmorley
Replied by cmorley on topic Gedit high lighting
from linuxcnc iki:
wiki.linuxcnc.org/cgi-bin/wiki.pl?Highlighting_In_Gedit

I havent tried it...

Chris M

Please Log in or Create an account to join the conversation.

More
22 Sep 2017 08:13 #99245 by cmorley
Replied by cmorley on topic Gedit high lighting
seems to work on mint --I put it in /usr/share/gtksourceview-3.0/language-specs directory

Chris M

Please Log in or Create an account to join the conversation.

More
23 Sep 2017 01:33 #99298 by 64dodge
Replied by 64dodge on topic Gedit high lighting
Thanks guys, I dont know much about this. I read late into the night trying to get my head around this.
The one thing Im not sure of is what part determines the color. This is from ngc.lang M is green.

<style _name="M-word" id="m_word" map-to="def:type"/>
<style _name="M-word (user)" id="m_word_u" map-to="def:type"/>


<context id="m" style-ref="m_word_u">
<match>m[\s\t]*1[\s\t]*[\d][\s\t]*[\d]</match>
</context>

I take it this is color [\s\t]*1[\s\t]*[\d][\s\t]*[\d]

<context id="m1" style-ref="m_word">
<match>m[\s\t]*[\d]+[\s\t]*[\d]?</match>
</context>

<context id="m2" style-ref="m_word">
<match>m</match>
</context>

Please Log in or Create an account to join the conversation.

More
23 Sep 2017 01:56 #99299 by 64dodge
Replied by 64dodge on topic Gedit high lighting
The coding is alot different on other .lang files than ngc.lang
such as lex, ruby, modelica

Please Log in or Create an account to join the conversation.

Moderators: Skullworks
Time to create page: 0.084 seconds
Powered by Kunena Forum