Neil Hodgson wrote:
instanton:

After carefully inspecting the ColouriseTeXDoc code I realized that the
keywordlists are not used most of the time because most TeX files would not begin with a comment line like "%interface=tex" or "interface=latex" and the
like.

  I don't use TeX so just assume the people that contribute code know
what they are doing. This becomes difficult when there are multiple
ways of using a language and communities built around particular
libraries as I can't judge the benefits or drawbacks.

indeed, and the config files contain keywords for the core languages (tex, pdftex, etex omega etc)

context ships wih a bunch of keyword defs (one for each user interface language)

since i use no other macro packages i have no other lists

In some cases (e.g. for users using UTF8
encoding), the first line of the document must be used for other purposes
(e.g. putting %# -*- coding: utf-8 -*- there in order that SciTE recognize
the document as being written in UTF8 encoding)

  The encoding cookie should work on line 2 as well.

afaik the cookie works ok

So
I'm wondering if you would accept the idea of replacing ColouriseTeXDoc code in LexTeX.cxx with something similar to ColoriseLaTeXDoc from LexOthers.cxx.

latex is just a macro package and the lexer is independent of the macro package; toe original lexer was flawed and not tex compliant; the current lexer is more configurable

  To preserve current usage, it would be safer to implement a second
lexer in LexTeX.cxx and allow users to choose between the two. If
there are other TeX users on this list or the scite-interest list then
they should make their opinions known.

scite if the reference editor for editing support in context (a tex macro package) and its users now expect these the tex/mplexers to be there -)

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to