Suggestion: G-code colorization

Post anything you want to discuss with others about the software.

Suggestion: G-code colorization

Postby Blaise » Sat Feb 19, 2022 5:12 pm

This is only a suggestion and I realize it would not be a priority but I feel it would be a nice addition to the UI.
Code colorization makes code so much easier to read. And it would look nice! :P

- Blaise

G-code colorization exemple.png
Colorization exemple
Blaise
 
Posts: 81
Joined: Tue Jan 16, 2018 3:41 am

Re: Suggestion: G-code colorization

Postby johnsattuk » Sat Feb 19, 2022 5:31 pm

Second that :)
johnsattuk
 
Posts: 79
Joined: Thu Aug 12, 2021 1:24 pm

Re: Suggestion: G-code colorization

Postby spillage » Sat Feb 19, 2022 6:20 pm

I’ll add a +1 for this… it really does make a difference in ease of reading your code.

For years to edit and compare G-code files I’ve used Discriminator… it’s a basic program but the colorization of the code makes it a pleasure to use.

Beyond just having the axii colour coded, I like having the G commands coloured to distinguish those that are at feedrate and those that are rapids.
Bryan
“Simplicity is the ultimate sophistication“ Leonardo Da Vinci
spillage
 
Posts: 47
Joined: Sat Aug 01, 2020 11:07 pm

Re: Suggestion: G-code colorization

Postby lp_felix » Mon Feb 21, 2022 8:35 am

+1
lp_felix
 
Posts: 26
Joined: Tue Sep 06, 2016 3:11 pm

Re: Suggestion: G-code colorization

Postby fixebr » Mon Feb 21, 2022 3:33 pm

+
Great idea!
My English is bad, so you're reading machine translation results. Alas.
User avatar
fixebr
 
Posts: 40
Joined: Thu Dec 30, 2021 8:30 pm
Location: Russia, Moscow

Re: Suggestion: G-code colorization

Postby cncdrive » Mon Feb 21, 2022 10:06 pm

I will try to implement it, but what things should have different colors?
Can you give me a list of the different colors please in the program you made a printscreen of?
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Suggestion: G-code colorization

Postby ger21 » Tue Feb 22, 2022 12:16 am

Here's what I see.

Color 1 - Line numbers - N##
Color 2 - Comments - (comment)
Color 3 - G codes - G1, G2, G3
Color 4 - X and I words and coordinates
Color 5 - Y and J words and coordinates
Color 6 - Z and K words and coordinates
Color 7 - M codes
Color 8 - T word ?
Color 9 - F and S words.

Then I guess 3 more colors for A, B, and C axis?
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: Suggestion: G-code colorization

Postby spillage » Tue Feb 22, 2022 12:12 pm

I would add a separate colour for G0 (rapid).
Bryan
“Simplicity is the ultimate sophistication“ Leonardo Da Vinci
spillage
 
Posts: 47
Joined: Sat Aug 01, 2020 11:07 pm

Re: Suggestion: G-code colorization

Postby fixebr » Tue Feb 22, 2022 9:28 pm

Perhaps enough 4 colors as in the CIMCO EDIT program:
cimco.png
My English is bad, so you're reading machine translation results. Alas.
User avatar
fixebr
 
Posts: 40
Joined: Thu Dec 30, 2021 8:30 pm
Location: Russia, Moscow

Re: Suggestion: G-code colorization

Postby cncdrive » Wed Feb 23, 2022 10:37 am

OK, I've extended the list, I think we need these colors for the 6 axes:

Color 0 - Base color, for everything which do not fit in any other categories.
Color 1 - Unrecogniseable texts
Color 2 - Line numbers - N##
Color 3 - Comments - (comment)
Color 4 - G codes - G1, G2, G3
Color 5 - X and I words and coordinates
Color 6 - Y and J words and coordinates
Color 7 - Z and K words and coordinates
Color 8 - A coordinates
Color 9 - B coordinates
Color 10 - C coordinates
Color 11 - M codes
Color 12 - T word ?
Color 13 - F and S words.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Next

Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 6 guests