Skip to content

Comments can start with semicolons #4

@drewnoakes

Description

@drewnoakes

.gcode files generated by Cura use ; to denote a comment. For example:

;FLAVOR:Marlin
;TIME:13408
;Filament used: 8.36149m
;Layer height: 0.2
;MINX:109.242
;MINY:104.34
;MINZ:0.2
;MAXX:194.408
;MAXY:195.66
;MAXZ:48.6
;Generated with Cura_SteamEngine 4.2.1
M140 S60
M105
M190 S60
M104 S200
M105
M109 S200
M82 ;absolute extrusion mode
M201 X500.00 Y500.00 Z100.00 E5000.00 ;Setup machine max acceleration
M203 X500.00 Y500.00 Z10.00 E50.00 ;Setup machine max feedrate
M204 P500.00 R1000.00 T500.00 ;Setup Print/Retract/Travel acceleration
M205 X8.00 Y8.00 Z0.40 E5.00 ;Setup Jerk
M220 S100 ;Reset Feedrate
M221 S100 ;Reset Flowrate

Because these comments are not recognised, the output renders as:

image

Not only are they harder to differentiate by colour, but the content within the comments is subject to highlighting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions