Bug 457753

Summary: Kate doesn't select G-Code type for files with .gcode extension
Product: [Applications] kate Reporter: gudvinr+kde
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 22.04.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: sample file

Description gudvinr+kde 2022-08-11 10:42:02 UTC
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
Comment 1 Christoph Cullmann 2022-08-21 21:06:31 UTC
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