Bug 506125 - Sagemath/Sage files should use Python syntax by default
Summary: Sagemath/Sage files should use Python syntax by default
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.04.2
Platform: Mint (Ubuntu based) Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-24 19:56 UTC by 318bcb
Modified: 2025-06-29 16:26 UTC (History)
1 user (show)

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


Attachments

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