highlighting nested code

Dominik Haumann dhaumann at kde.org
Sat Feb 23 17:31:13 GMT 2019


Hi Jos,

currently, MarkDown only supports Python and PHP here, see:
https://github.com/KDE/syntax-highlighting/blob/master/data/syntax/markdown.xml#L83

We'd need to add more IncludeRules for other languages we want to
support - or extend the highlighting system somehow to make this
possible more easily.

Patches welcome :-)

Best regards
Dominik

On Sat, Feb 23, 2019 at 6:18 PM Jos van den Oever <jos at vandenoever.info> wrote:
>
> Hello all,
>
> Is it possible to highlight code snippets in MarkDown files?
>
> When writing MarkDown with Kate, the code blocks (```) are one colour.
>
> Some examples:
>
> ```bash
> ls *
> ```
>
> ```cpp
> int main() {
>     return 0;
> }
> ```
>
> Cheers,
> Jos


More information about the KWrite-Devel mailing list