Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] Please help / how to implement syntax highlighting?

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] Please help / how to implement syntax highlighting?


Chronological Thread 
  • From: Joris van der Hoeven <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] Please help / how to implement syntax highlighting?
  • Date: Thu, 14 Oct 2010 22:39:15 +0200

Dear Sylvain,

An efficient low-level mechanism for syntax highlighting is work in progress.
The next version should contain sufficient support for most purposes;
you can try it by using the SVN version: by typing '\minimal return',
you can type some text in a minimal programming language whose
formal syntax is defined in TeXmacs/progs/language/minimal.scm,
which also contains primitives for syntax highlighting.
The syntax corresponds to a packrat grammar.

You may contribute by adding grammars for increasingly complex languages:
starting with Makefiles and bash, you might add C, java, C++, ...
This would be a very useful contribution.

Best wishes, --Joris


On Thu, Oct 14, 2010 at 07:49:30PM +0200, sylvain wrote:
> Hi,
>
> I am trying to figure out how to implement syntax highlighting for ATS
> in Texmacs.
>
> There is references to be found about a supposedly good tutorial on
> style sheets, but it is not available anymore.
> (was at http://www.ags.uni-sb.de/~henri/texmacs/aTeXmacsTutorial.pdf)
>
> I have tried to found examples in Texmacs source, but this is a big
> program.
>
> Simply said, I am stuck. I would really need a hint to get started.
> Is there a tutorial or an example somewhere that could help me?
>
> Please!
>
> Thanks in advance,
> Sylvain
>



Archive powered by MHonArc 2.6.19.

Top of Page