G-Code Highlighter for Brackets

G-Code Highlighter for Brackets

martha.deans
Autodesk Autodesk
5,088 Views
15 Replies
Message 1 of 16

G-Code Highlighter for Brackets

martha.deans
Autodesk
Autodesk

I was feeling inspired this week, and took a stab at writing an extension to highlight g-code files in Brackets like below:

 

default.pngwithHighlighting.png 

 

Let me know what you guys think! 

 

(here's a video that's like 30 seconds and shows how to load the extension 🙂 )

 


Marti Deans
Product Manager, Fusion 360 Manufacturing
5,089 Views
15 Replies
Replies (15)
Message 2 of 16

daniel_lyall
Mentor
Mentor
yes that is better do it own it name it


Win10 pro | 16 GB ram | 4 GB graphics Quadro K2200 | Intel(R) 8Xeon(R) CPU E5-1620 v3 @ 3.50GHz 3.50 GHz

Daniel Lyall
The Big Boss
Mach3 User
My Websight, Daniels Wheelchair Customisations.
Facebook | Twitter | LinkedIn

0 Likes
Message 3 of 16

Anonymous
Not applicable

Is it rude of me to say I did it first? http://forums.autodesk.com/t5/computer-aided-machining-cam/the-brackets-editor-syntax-highlighting/t...  😛

 

Just kidding! Good to bring this back up.  Why isn't this distributed with Fusion?

 

Dave

0 Likes
Message 4 of 16

LibertyMachine
Mentor
Mentor

That looks really neat! Question though: Is Brackets ever affected by Fusion updates, or does it take something significant to have any impact on Brackets?


Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.
0 Likes
Message 5 of 16

al.whatmough
Alumni
Alumni

@martha.deans

 

5 Kudos for your very first post on the Forum.  You set the bar high you know!

 

 

---------
AL Whatmough
Director Product Management - Manufacturing

Note, I love to engage on the forums. However, I spend a lot of time in meetings trying to help clear the path for our amazing team of Developers working on Manufacturing at Autodesk. So, if I don't respond immediately, it's not that I don't care.
0 Likes
Message 6 of 16

wellisonS6RTG
Contributor
Contributor

Hi Martha,

 

I've downloaded and installed the Simple G-Code Syntax Highlighter for Brackets.  It works great for newly posted programs but I notice that for files downloaded from my machines the hightlighting doesn't work.  Is there a known reason for this?  Thanks.

 

-William

0 Likes
Message 7 of 16

martha.deans
Autodesk
Autodesk

Hey William,

 

All the file extensions for which files Brackets identifies as NC code are hardcoded into the extension, so if the file you're downloading from the machine isn't included then it won't have the colors applied. You should be able to tell Brackets that it's "G-Code" with the list in the bottom corner and I think even set the default type for that extension.

 

Hope that helps!


Marti Deans
Product Manager, Fusion 360 Manufacturing
Message 8 of 16

wellisonS6RTG
Contributor
Contributor

Thanks Martha!  That was very helpful!

 

-William

0 Likes
Message 9 of 16

Stuart-H
Collaborator
Collaborator

Dare I say visual code with the code hilighter installed is a bit nicer than brackets 

 

hilights jarvasctipt and gcode very well

 

win and Mac are available 

 

I keep getting errors about brackets in Mac OS because it’s looks like it’s 32bit

Mac Studio M1Max and MacBook Pro M1
0 Likes
Message 10 of 16

daniel_lyall
Mentor
Mentor

@Stuart-H  VSC has a post-editing addon for fusion and HSM post-processors as well.


Win10 pro | 16 GB ram | 4 GB graphics Quadro K2200 | Intel(R) 8Xeon(R) CPU E5-1620 v3 @ 3.50GHz 3.50 GHz

Daniel Lyall
The Big Boss
Mach3 User
My Websight, Daniels Wheelchair Customisations.
Facebook | Twitter | LinkedIn

Message 11 of 16

jeff.pek
Community Manager
Community Manager

FYI, we are planning to move away from Brackets as the default NC code (etc.) editor for Fusion. This is due to new requirements for MacOS, which Brackets does not meet.

You are, of course, free to continue to use Brackets as a "custom editor" via the preferences setting.

  Jeff

Message 12 of 16

itstimetolivenow
Advocate
Advocate

Good afternoon!

Its interesting, but this file "brackets-gcode-syntax-highlighter.zip" not found. Please download again.

0 Likes
Message 13 of 16

martha.deans
Autodesk
Autodesk

If you're looking for the .zip file itself, you can download the extension at the top directly under my original post. The video will take you through the steps to install it into Brackets!

 

-Marti


Marti Deans
Product Manager, Fusion 360 Manufacturing
Message 14 of 16

itstimetolivenow
Advocate
Advocate

Thank you.

I successfully downloaded the extension file. But now another problem - video instruction is not available.

0 Likes
Message 15 of 16

martha.deans
Autodesk
Autodesk

That's what I get for linking to my personal Dropbox 🙂

 

Here's the QUICK TIP on YouTube that walks through the same info: https://youtu.be/onbWqOMkaFI

 


Marti Deans
Product Manager, Fusion 360 Manufacturing
Message 16 of 16

itstimetolivenow
Advocate
Advocate

Thank you very much. Everything works perfectly!

0 Likes