Notepad++ User-Defined Centroid Language

All things related to Centroid Oak, Allin1DC, MPU11 and Legacy products

Moderator: cnckeith

Post Reply
wellington_tregear
Posts: 15
Joined: Sat Feb 09, 2019 10:13 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Monroe Michigan USA

Notepad++ User-Defined Centroid Language

Post by wellington_tregear »

Is there a Notepad++ language definition floating around written for Centroid (user-defined language)? I'm using my own which I am making up as I go, but would willingly comply to a written format. For example, for "Folding Code" I am using ;{ as open and ;} as close (curly brackets borrowed from C++ convention). See attached. Anyone? Anyone? Buhler?

Open
notepad folding open.PNG
Closed
notepad  folding closed.PNG


DannyB
Posts: 109
Joined: Mon Jan 15, 2018 1:11 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: Yes
CNC Control System Serial Number: A900712
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Notepad++ User-Defined Centroid Language

Post by DannyB »

For gcode or PLC code?

For centroid gcode, i'll have a vscode extension out today that will do hover help, code completion, syntax highlighting, etc.
I'm just putting the finishing touches on it now.

For centroid PLC code, i already released one :)

notepad++ is a nice editor but it's hard to make good syntax highlighters for it with the capability they offer.
(i have a gcode user defined language but it's only okay)


wellington_tregear
Posts: 15
Joined: Sat Feb 09, 2019 10:13 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Monroe Michigan USA

Re: Notepad++ User-Defined Centroid Language

Post by wellington_tregear »

For gcode/macros. I saw your other post, great job although I'm not to the PLC customizing stage in my usage. I'd be all for abandoning Notepad++ if something better comes along! Get to writing that VS extension! :D :lol:

Update: I see now that you already released the extension. Thanks! I look forward to the switch from NP++!


DannyB
Posts: 109
Joined: Mon Jan 15, 2018 1:11 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: Yes
CNC Control System Serial Number: A900712
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Notepad++ User-Defined Centroid Language

Post by DannyB »

I just released it to the store.
I can add folding/outlining past what is there if you want.

What do you fold?
M3/M5 blocks?


wellington_tregear
Posts: 15
Joined: Sat Feb 09, 2019 10:13 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Monroe Michigan USA

Re: Notepad++ User-Defined Centroid Language

Post by wellington_tregear »

Ive always folded gcode at tool changes, but thats just me.


DannyB
Posts: 109
Joined: Mon Jan 15, 2018 1:11 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: Yes
CNC Control System Serial Number: A900712
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Notepad++ User-Defined Centroid Language

Post by DannyB »

I can certainly do that.
Technically, only the M6 is modal, but we can do whatever we want :)

The next version will also tell you what the active gcode modes are in hovers.


Post Reply