Bug 457753 - Kate doesn't select G-Code type for files with .gcode extension
Summary: Kate doesn't select G-Code type for files with .gcode extension
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (other bugs)
Version First Reported In: 22.04.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-11 10:42 UTC by gudvinr+kde
Modified: 2022-08-21 21:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
sample file (483.87 KB, text/x-gcode)
2022-08-11 10:42 UTC, gudvinr+kde
Details

Note You need to log in before you can comment on or make changes to this bug.
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