Bug 442900

Summary: [Feature request] Optional reStructuredText syntax highlighting for inline Python documentation
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: geisserml <geisserml>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED REMIND    
Severity: wishlist CC: walter.von.entferndt
Priority: NOR    
Version First Reported In: 5.86.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description geisserml 2021-09-24 14:34:04 UTC
SUMMARY
Many Python projects use inline code documentation with sphinx-autodoc, since this is a lot less maintenance work than separate code documentation.
This way, it is much easier to keep code and docs consistent, especially as method parameter headers are generated automatically.

STEPS TO REPRODUCE
1. Open a Python file with inline Sphinx reStructuredText documentation in Kate

OBSERVED RESULT
The Python code is syntax-highlighted. The inline rst markup is not highlighted, however.

EXPECTED RESULT
It would be nice to have optional rst syntax highlighting for inline code documentation indicated with `""" documentation text here """`.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.22
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-36-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-3570K CPU @ 3.40GHz
Memory: 7.2 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4000

ADDITIONAL INFORMATION
Perhaps this idea is a bit far-fetched and/or hard to implement, so this is really just a suggestion.
Comment 1 geisserml 2023-01-01 16:30:11 UTC
Closing as I'm not using KDevelop anymore.