Bug 506125

Summary: Sagemath/Sage files should use Python syntax by default
Product: [Applications] kate Reporter: 318bcb
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: christoph
Priority: NOR    
Version First Reported In: 25.04.2   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description 318bcb 2025-06-24 19:56:36 UTC
SUMMARY
Sagemath is a superlanguage of Python, and uses `.sage` extensions.  By default, Kate does not use any syntax highlighting for Sage files, but it should use Python syntax.

STEPS TO REPRODUCE
1. Open a `.sage` source file.

OBSERVED RESULT
Kate does not use any syntax highlighting.

EXPECTED RESULT
Since Sage is a superlanguage of Python, it makes the most sense to use Python highlighting by default.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Mint 22.1
KDE Plasma Version: 
KDE Frameworks Version: 6.13.0 (Flatpak)
Qt Version: 6.9.0
Comment 1 Christoph Cullmann 2025-06-29 16:25:12 UTC
Git commit 694cd7ff4c727e671bc90de30c72de67026063ab by Christoph Cullmann.
Committed on 29/06/2025 at 16:25.
Pushed by cullmann into branch 'master'.

Sagemath is a superlanguage of Python, and uses `.sage` extensions

M  +1    -1    data/syntax/python.xml

https://invent.kde.org/frameworks/syntax-highlighting/-/commit/694cd7ff4c727e671bc90de30c72de67026063ab
Comment 2 Christoph Cullmann 2025-06-29 16:26:50 UTC
Thanks, good idea.