highlighting nested code

Jos van den Oever jos at vandenoever.info
Sat Feb 23 18:48:03 GMT 2019


Hi again,

Turns out that adding more languages is easy.
https://phabricator.kde.org/D19263

I've read the comments on https://phabricator.kde.org/D7864 about this 
approach not scaling, but it's the one that's currently installed.

Cheers,
Jos

On Saturday, February 23, 2019 6:31:13 PM CET Dominik Haumann wrote:
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20190223/f32e027f/attachment.sig>


More information about the KWrite-Devel mailing list