This is a multi-part message in MIME format. --------------010803070909000704010100 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Andriy Lesyuk wrote: > Hi > > I have created simple syntax highlighting file for nroff/man language. > This syntax file is based on nroff.syntax from midnight commander plus > some enhancements. > > Unfortunately I don't know nroff well that's why I can't be sure that > syntax file was written correctly. It would be good if someone who knows > nroff better would look at it... > > Home in future this file can be added to katepart. I'm attaching my own mandoc highlighter (complete) and the beginnings of a roff highlighter (keyword lists are as of yet 99.9% unpopulated). The mandoc highlighter relies on the roff highlighter, but ultimately both rely on the patch in http://bugs.kde.org/show_bug.cgi?id=135844 (which I just posted like 30 minutes ago). I think this is a better solution because it generalizes the roff highlighting into a re-usable .xml, and the mandoc highlighter just adds the andoc.tmac stuff to the underlying roff highlighter. With this system it would be very easy to add highlighters for other standard macro packages, and they would be equally small. Compared to yours, the mandoc highlighting is less sophisticated (though, per my other comments, I think it is more in line in terms of typical highlighters and correct functionality). The roff highlighter on the other hand is much more sophisticated, and includes folding and generic recognition of special markups (registers, strings, escapes, fonts, and glyphs), and will be improving as I continue work on it. The kateversion tags needs to change, though, since these rely on new functionality. (BTW, WHERE do I find the kate version in katepart?) -- Matthew Don't use a hippo to... what was I saying? --------------010803070909000704010100 Content-Type: text/xml; name="mandoc.xml" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mandoc.xml" SH SS TH HP IP LP P PD PP RE RS TP B BI BR I IB IR RB RI SM SB DT --------------010803070909000704010100 Content-Type: text/xml; name="roff.xml" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="roff.xml" ]> br sp --------------010803070909000704010100 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ KWrite-Devel mailing list KWrite-Devel@kde.org https://mail.kde.org/mailman/listinfo/kwrite-devel --------------010803070909000704010100--