- Posts: 27
- Thank you received: 0
Gedit high lighting
9 years 1 month ago #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
Thanks
Tim
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
9 years 1 month ago #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 to join the conversation.
9 years 1 month ago #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
wiki.linuxcnc.org/cgi-bin/wiki.pl?Highlighting_In_Gedit
I havent tried it...
Chris M
Please Log in to join the conversation.
9 years 1 month ago #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
Chris M
Please Log in to join the conversation.
9 years 1 month ago #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>
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 to join the conversation.
9 years 1 month ago #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
such as lex, ruby, modelica
Please Log in to join the conversation.
Time to create page: 0.260 seconds
