caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: lionel.durigneux@bnpparibas.com
To: caml-list@inria.fr
Subject: [Caml-list] Ocaml SciTE mode
Date: Tue, 15 Apr 2003 11:02:03 +0200	[thread overview]
Message-ID: <OF298C6E2E.351BA63F-ONC1256D09.003077F1@bnpparibas.com> (raw)

Do you know the SciTE editor ?
(free for Linux & Windows, with src,
see http://www.scintilla.org or http://www.scintilla.org/SciTE.html)

If anyone is interested about editing Ocaml source code with SciTE (and running by F5),
copy this ocaml.properties file below at the right place (among other .properties of your SciTE)
(This file is inspired by lisp.properties and pascal.properties). I use it with success since
I write some code with ocaml under windows NT4 and Linux Redhat 7.3.

nota: you can press F5 to run the edited code running under labelgtk when the file extension is .mlg
(if you get better, tell me)

# Define SciTE settings for ocaml.

file.patterns.ocaml=*.ml;*.mli;*.mlg
filter.ocaml=OCAML (ml mli mlg)|$(file.patterns.ocaml)|
file.patterns.braces=$(file.patterns.ocaml)
lexer.$(file.patterns.ocaml)=pascal

# ocaml build in functions, xlisp dialect
keywords.$(file.patterns.ocaml)= not defun + - * / = < > <= >= princ\
eval apply funcall identity function complement lambda set setq setf\
defun defmacro gensym make symbol intern symbol name symbol value symbol plist get\
getf putprop remprop hash make array aref cons list append reverse last nth\
nthcdr member assoc subst sublis nsubst nsublis remove length list length\
delete null eq eql equal cond case and or let prog\
go return do catch except throw error break\
float min max abs sin cos tan expt exp sqrt\
integer length nil do done match with for to if then else rec downto ref\
begin end unit while let and type in mutable string int of raise try not struct\
sig module class val method new print_int print_string open load
#= [ ] : { } <- @ # ;


word.chars.ocaml=$(chars.alpha)$(chars.numeric)_-<>.+$%^&=*!?
word.characters.$(file.patterns.ocaml)=$(word.chars.ocaml)

comment.stream.start.pascal=(*
comment.stream.end.pascal=*)
comment.box.start.pascal=(*
comment.box.middle.pascal= *
comment.box.end.pascal=*)

# ocaml styles

# Default
style.ocaml.32=$(font.base)
# White space
style.ocaml.0=fore:#808080
# Line Comment
style.ocaml.1=$(colour.code.comment.box),$(font.code.comment.box)
# Number
style.ocaml.2=$(colour.number)
# Keyword
style.ocaml.3=$(colour.keyword),bold
# String
style.ocaml.6=$(colour.string)
# Operators
style.ocaml.10=$(colour.operator),bold
# Identifiers
style.ocaml.9=
# End of line where string is not closed
style.ocaml.8=fore:#000000,font:Verdana,size:9,back:#fefecc,eolfilled
# Matched Operators
style.ocaml.34=fore:#0000FF,bold
style.ocaml.35=fore:#FF0000,bold
# Braces are only matched in operator style
braces.ocaml.style=10

command.go.*.ml=c:\WORKAREA\OCaml\bin\ocaml.exe $(FilePath)
command.go.*.mlg=c:\WORKAREA\OCaml\bin\lablgtk.bat $(FilePath)
command.go.subsystem.*.ml=1





This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


                 reply	other threads:[~2003-04-15  9:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=OF298C6E2E.351BA63F-ONC1256D09.003077F1@bnpparibas.com \
    --to=lionel.durigneux@bnpparibas.com \
    --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).