Highlight of source code in Markdown document

Vojtěch Zeisek <[email protected]> Sat, 14 Mar 2020 15:58:36 +0100
Newsgroups gmane.linux.suse.kde
Organization openSUSE GNU/Linux
Message-ID <12283033.YarxlXCqUC@tilia>
Hi,
if I write document.md in Kate and I type something like

```shell
while read L; do mv HybPiper."$L".[eo]* "$L"/; done < samples_list.txt
```

or

```R
install.packages(pkgs=c("ape", "ggplot", "gplots", "heatmap.plus",
"ips", "reshape"), lib="rpackages", repos="https://mirrors.nic.cz/R/",
dependencies="Imports")
```

Kate nicely shows syntax highlight for selected language (BTW, much better 
than in Notepad++ or Geany:-). When I click on the document.md in Dolphin, 
it's opened in Okular. It generally renders well, but for the above source 
code blocks it doesn't show any source code highlight, just monospace font. I 
wonder if there is any way how to make Okular to display highlighted source 
code, if I should open it in something else, or if there is some more 
universal way how to get source code highlight in Markdown document.
I also wonder if Okular could display navigation created form headlines (lines 
starting by one or more #) as e.g. Geany does this automatically.
Have a nice day,
V.

-- 
Vojtěch Zeisek
https://trapa.cz/

Komunita openSUSE GNU/Linuxu
Community of the openSUSE GNU/Linux
https://www.opensuse.org/
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEES97LYVdqIgW2UhmwtBndlZHSOVEFAl5s8RwACgkQtBndlZHS
OVHMuBAAnx6u4tnoPqKjYtmR8a2Q4z4veIu0HzFMNqolEY2iaRUcJqxDTmqXSjPR
QZuTqCols/uCqNqgRjEMfHsQP5RTBWPIWLTQF0eGPzwLhU8taNWw8LlY8SYAnoCa
b3hj916K6W74cianYKCU3IULnTL7Gld0msCP966nTjKkHV0zV01UE4ZgWpvPEKdz
zyv2BsWiwIy82vAf5yyXIdK5GKSQc1V5zaGJy/ND+ONzNjCu2qbT+iCn0QhU34S4
K5DfYNtzKJUf88AJnZ6peq2BS6VgQtPHCSpeSzJE9uTIxboRe25ubGvoT91ON7DP
+Pv6I8I/dMjbqp+sFYPE/LouQcccEwO/K9oVNxlX5bNEe5TyCkAiXKilDV5Z4ft8
fNoT7vGUEfCEj7vMGQQumT3xaQKVUKAPYoQMz1gSZyOMN9Q3xzdEOlyarPcld/5X
SZEgvMr5UdaE1ywY/USG5s/sKhs6ugq0zEgRYbGScD4CL63ejtRji+rXDB80rxY1
RE0NsR0Xf0Q4ZORtyQqQm5JdP/F+26Z/uQ/x8AqGedjXFtnqIgCTYvjrXVvf2GlU
KKoY1gkowCv6tls+7UIfYTAlomCETSYMhI27EbU01JAQe/j02W1aP6VPUbz4gH/w
1ci3Jq1kKlut5nbsmFdh2rXlP70z3hazp9qO9ehux3Ynh8+6lHI=
=dq/I
-----END PGP SIGNATURE-----