English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
GtkSourceView2.0 syntax highlighting
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-05-29 (21:29)
From: Edgar Friendly <thelema314@g...>
Subject: Re: [Caml-list] GtkSourceView2.0 syntax highlighting
Richard Jones wrote:
> On Tue, May 29, 2007 at 02:04:52PM -0500, Edgar Friendly wrote:
>> * Comments (* *), and within them, email addresses, net addresses and
> Are (** ... *) (ocamldoc) comments shown differently?  If that's easy
> to do, it might be worthwhile.
Yes, it's easy.

Inside ocamldoc comments, there's various @-tags.  Are there any that
should have special handling (specially formatting what follows them?),
or just highlight them, or highlight the lines they're in?

There also seem to be stop comments.  I might as well highlight those,
but I don't think it's possible (or if possible, worth the complexity)
to try enabling and disabling ocamldoc highlighting in the right places
so that comments that won't appear in the documentation get a different
highlighting.  If someone is really interested, they're more than
welcome to give it a try.

>> * List literals - [ elem1; elem2; elem3 ]
>> * Array literals - [| elem1; elem2; elem3 |]
> These would be nice, if possible.
How do you want the contents to look, same as they would outside the
literal, or the same style throughout (like strings)?