[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: Feature request: include syntax highlighting rules from modeline
From:       Anders Lund <anders () alweb ! dk>
Date:       2006-10-30 16:25:22
Message-ID: 200610301725.25333.anders () alweb ! dk
[Download RAW message or body]

On Monday 30 October 2006 11:17, Andriy Lesyuk wrote:
> What about adding modeline like "include-hl"?
>
> It should work like:
>
> /* kate: include-hl Alerts; */
>
> This string should include alerts.xml into currently used highlighting
> style. Actually it should work
> like adding <IncludeRules "##Alerts" /> into corresponding xml file.

The <IncludeRules ##<hlname> /> rule is put in a place in the hl rules where 
it makes sense, for example the alerts hl is usually inserted where a hl 
parses comments.

It could be possible to insert a hl in the top of the main hl loop, but i'm 
not sure how useful that would be.

-anders
-- 
www: http://alweb.dk
jabber: anderslund@jabber.dk
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic