[opensuse-kde] Highlight of source code in Markdown document
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/
participants (1)
-
Vojtěch Zeisek