[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:       Andriy Lesyuk <s-andy () in ! if ! ua>
Date:       2006-10-30 16:33:57
Message-ID: 45462975.4060606 () in ! if ! ua
[Download RAW message or body]

Anders Lund wrote:
> 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.

Yeah. I know that. This is the issue... The only solution I see is to 
specify the context
where to "insert" new rules. Not sure how it is solvable...

I'm not saying to do so... I'm asking is it possible somehow?..

Andriy
_______________________________________________
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