Bug 453082 - Okular could support syntax color annotation for code blocks
Summary: Okular could support syntax color annotation for code blocks
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: markdown backend (show other bugs)
Version: 21.12.3
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-27 08:42 UTC by tnemeth
Modified: 2024-01-24 08:25 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tnemeth 2022-04-27 08:42:54 UTC
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
Comment 1 tnemeth 2024-01-24 08:25:53 UTC
Huh ?
Where did that quote from Confucius came from ? Sorry must have been a copy-paste error -_-;