caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Eric Cooper <ecc@cmu.edu>
To: caml-list@inria.fr
Subject: Re: [Caml-list] ANNOUNCE: LablGtkSourceView
Date: Fri, 8 Jul 2005 13:42:30 -0400	[thread overview]
Message-ID: <20050708174230.GA9563@localhost> (raw)
In-Reply-To: <42CE90C9.4050708@ens-lyon.org>

On Fri, Jul 08, 2005 at 04:42:17PM +0200, David Baelde wrote:
> Many people probably want to know: is there a OCaml.lang for specifying 
> OCaml syntax/indentation for GtkSourceView ? Could be useful for that 
> ongoing OCamlIDE project...

Here's a first cut at one:
    http://www.cs.cmu.edu/~ecc/ocaml.lang

On Debian at least, you can put this in
    ~/.gnome2/gtksourceview-1.0/language-specs/

You will also need MIME types recognized for OCaml programs.
Put the following in ~/.local/share/mime/globs:
    text/x-ocaml:*.ml
    text/x-ocaml:*.mli

(On other systems, it might be useful to run
    strace -e trace=file gedit foo.ml
to find out where it's looking for these definitions.)

-- 
Eric Cooper             e c c @ c m u . e d u


      parent reply	other threads:[~2005-07-08 17:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-08 10:17 Stefano Zacchiroli
2005-07-08 14:42 ` [Caml-list] " David Baelde
2005-07-08 15:29   ` Stefano Zacchiroli
2005-07-08 17:42   ` Eric Cooper [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050708174230.GA9563@localhost \
    --to=ecc@cmu.edu \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).