| Summary: | Okular could support syntax color annotation for code blocks | ||
|---|---|---|---|
| Product: | [Applications] okular | Reporter: | tnemeth |
| Component: | markdown backend | Assignee: | Okular developers <okular-devel> |
| Status: | REPORTED --- | ||
| Severity: | wishlist | ||
| Priority: | NOR | ||
| Version First Reported In: | 21.12.3 | ||
| Target Milestone: | --- | ||
| Platform: | Debian testing | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Huh ? Where did that quote from Confucius came from ? Sorry must have been a copy-paste error -_-; |
SUMMARY Displaying a markdown file having annotated code blocks could be more beautiful if syntax highlight were used. Blockquotes could also benefit of a different hightlight... STEPS TO REPRODUCE 1. Create a markdown file using anontated code and citation blocks, eg: ------8<------8<------ Create a source file `hello.c`: ```C #include <stdio.h> int main(void) { print("Hello world\n"); return 0; } ``` Build the source: ```Shell gcc -o hello hello.c ``` A quote from Confucius who said: > Demand a lot from yourself and expect little from others. This will save you a lot of trouble. ... ------8<------8<------ 2. Display the markdown file in Okular OBSERVED RESULT No syntax highlight on source code blocks, no emphasis on the quote. EXPECTED RESULT Beautiful code with fixed-size fonts and syntax highlight for code blocks, something nice for the quote. SOFTWARE/OS VERSIONS Windows: N/A macOS: N/A Linux/KDE Plasma: 5.17.0-1-amd64 (available in About System) KDE Plasma Version: 5.24.4 KDE Frameworks Version: 5.90.0 Qt Version: 5.15.2