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

List:       kwrite-devel
Subject:    Re: Syntax highlighting for nroff/man
From:       Dominik Haumann <dhdev () gmx ! de>
Date:       2006-12-15 16:12:01
Message-ID: 200612151712.01890.dhdev () gmx ! de
[Download RAW message or body]

On Thursday 19 October 2006 01:16, Matthew Woehlke wrote:
> 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?)

Sorry for asking again - but is this now the final version we should 
commit? :)

Greetings,
dominik
_______________________________________________
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