Created attachment 151244 [details] sample file SUMMARY When you open G-Code file generated with PrusaSlicer (3D printer slicing software) it saves them as .gcode files. There is G-Code syntax highlighter and it works when you select manually but these files use plain text formatting. STEPS TO REPRODUCE 1. Open .gcode file in Kate OBSERVED RESULT Syntax is set to normal. EXPECTED RESULT Syntax is set to G-Code. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.25.4 KDE Frameworks Version: 5.96.0 Qt Version: 5.15.5 Graphics Platform: Wayland
Git commit 32d75295252396bff391d6d0f05ff6c013edec46 by Christoph Cullmann. Committed on 21/08/2022 at 21:06. Pushed by cullmann into branch 'master'. detect .gcode files as G-Code M +2 -2 data/syntax/gcode.xml https://invent.kde.org/frameworks/syntax-highlighting/commit/32d75295252396bff391d6d0f05ff6c013edec46