You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Syntax highlighting fails with 'less than' symbol #75
Interesting. I also noticed some weird syntax highlighting in some of the gcode files I have been working with lately as well. I need to go through the syntax highlighting an see if I can reproduce some of this as well.
Can you paste some actual code from this or attach a text file so I can diagnose?
M17; enable steppersM862.1 P[nozzle_diameter] A{(filament_abrasive[0] ? 1 : 0)} F{(nozzle_high_flow[0] ? 1 : 0)} ; nozzle checkM862.3 P "COREONE" ; printer model checkM862.5 P2; g-code level checkM862.6 P"Input shaper" ; FW feature checkM115U6.8.1+16182
M555 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32)} Y{(max(0, first_layer_print_min[1]) - 4)} W{((min(print_bed_max[0], max(first_layer_print_min[0] + 32, first_layer_print_max[0])))) - ((min(print_bed_max[0], first_layer_print_min[0] + 32) - 32))} H{((first_layer_print_max[1])) - ((max(0, first_layer_print_min[1]) - 4))}
G90; use absolute coordinatesM83; extruder relative mode
{if chamber_minimal_temperature[initial_tool]!=0}
M140S115; set bed temp for chamber heating
{else}
M140S[first_layer_bed_temperature] ; set bed temp
{endif}
M109 R{((filament_notes[0]=~/.*MBL160.*/) ? 160 : (filament_notes[0]=~/.*HT_MBL10.*/) ? (first_layer_temperature[0] - 10) : (filament_type[0] == "PC" or filament_type[0] == "PA") ? (first_layer_temperature[0] - 25) : (filament_type[0] == "FLEX") ? 210 : 170)} ; wait for tempM84 E ; turn off E motorG28; home all without mesh bed level
{if chamber_minimal_temperature[initial_tool]!=0}
; Min chamber temp sectionM104 S{idle_temperature[initial_tool]} ; set idle tempG1 Z10 F720; set bed positionG1X242Y-9F4800; set print head positionM191 S{chamber_minimal_temperature[initial_tool]} ; wait for minimal chamber tempM141 S{chamber_temperature[initial_tool]} ; set nominal chamber tempM107M140S[first_layer_bed_temperature] ; set bed temp
{else}
M141 S{chamber_temperature[initial_tool]} ; set nominal chamber temp
{endif}
{if first_layer_bed_temperature[initial_tool]<=60}M106 S70{endif}G0 Z40 F10000M104 T{initial_tool} S{if is_nil(idle_temperature[initial_tool])}100{else}{idle_temperature[initial_tool]}{endif}M190 R[first_layer_bed_temperature] ; wait for bed tempM107G29 G ; absorb heatM109 R{((filament_notes[0]=~/.*MBL160.*/) ? 160 : (filament_notes[0]=~/.*HT_MBL10.*/) ? (first_layer_temperature[0] - 10) : (filament_type[0] == "PC" or filament_type[0] == "PA") ? (first_layer_temperature[0] - 25) : (filament_type[0] == "FLEX") ? 210 : 170)} ; wait for MBL tempM302 S155 ; lower cold extrusion limit to 155C{if filament_type[initial_tool]=="FLEX"}G1 E-4 F2400 ; retraction{else}G1 E-2 F2400 ; retraction{endif}M84 E ; turn off E motorG29 P9 X208 Y-2.5 W32 H4;; MBL;M84 E ; turn off E motorG29 P1 ; invalidate mbl & probe print areaG29 P1 X150 Y0 W100 H20 C ; probe near purge placeG29 P3.2 ; interpolate mbl probesG29 P3.13 ; extrapolate mbl outside probe areaG29 A ; activate mbl; prepare for purgeM104 S{first_layer_temperature[0]}G0 X249 Y-2.5 Z15 F4800 ; move away and ready for the purgeM109 S{first_layer_temperature[0]}G92 E0M569 S0 E ; set spreadcycle mode for extruderM591 S0 ; disable stuck detection;; Extrude purge line;G92 E0 ; reset extruder positionG1 E{(filament_type[0] == "FLEX" ? 4 : 2)} F2400 ; deretraction after the initial oneG0 E5 X235 Z0.2 F500 ; purgeG0 X225 E4 F500 ; purgeG0 X215 E4 F650 ; purgeG0 X205 E4 F800 ; purgeG0 X202 Z0.05 F8000 ; wipe, move close to the bedG0 X199 Z0.2 F8000 ; wipe, move quickly away from the bedM591 R ; restore stuck detectionG92 E0M221 S100 ; set flow to 100%
This is just some of the startup gcode coming out of Prusa Slicer.
It seems even the github code highlighter has the same issue. But I have been using novy.vsc-gcode extension and that doesn't seem to have the same issue.
Ok thanks. I'll take a look at their code too and see if there's anything I can notice.
I think once I can get the machine type selection working it'll make it a little easier since code is so vastly different from CNC machine tools and 3D printers.
Activity
github-actions commentedon May 13, 2026
Hello and welcome! Thanks for creating your first issue! Someone from our community will get back to you soon!
mikecentola commentedon Sep 9, 2026
Interesting. I also noticed some weird syntax highlighting in some of the gcode files I have been working with lately as well. I need to go through the syntax highlighting an see if I can reproduce some of this as well.
Can you paste some actual code from this or attach a text file so I can diagnose?
WORMSS commentedon Sep 10, 2026
This is just some of the startup gcode coming out of Prusa Slicer.
It seems even the github code highlighter has the same issue. But I have been using
novy.vsc-gcodeextension and that doesn't seem to have the same issue.mikecentola commentedon Sep 10, 2026
Ok thanks. I'll take a look at their code too and see if there's anything I can notice.
I think once I can get the machine type selection working it'll make it a little easier since code is so vastly different from CNC machine tools and 3D printers.