lib/jedit/README
author wenzelm
Mon, 05 May 2008 15:23:59 +0200
changeset 26783 1651ff6a34b5
parent 25854 ab6ce0d5662d
child 27062 9681f347b6f5
permissions -rw-r--r--
added isasymIN/STRUCTURE;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25854
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
     1
Isabelle support for jEdit -- http://www.jedit.org/
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
     2
===================================================
24888
68ff03c069a0 Basic Isabelle mode for jEdit -- http://www.jedit.org/
wenzelm
parents:
diff changeset
     3
25854
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
     4
This provides both a basic editing "mode" (with some degree of syntax
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
     5
highlighting), and a proper "plugin" with some support for interaction
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
     6
with the Isabelle process.
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
     7
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
     8
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
     9
Mode installation
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    10
-----------------
24888
68ff03c069a0 Basic Isabelle mode for jEdit -- http://www.jedit.org/
wenzelm
parents:
diff changeset
    11
68ff03c069a0 Basic Isabelle mode for jEdit -- http://www.jedit.org/
wenzelm
parents:
diff changeset
    12
1) Copy or symlink [ISABELLE_HOME]/lib/jedit/isabelle.xml to
68ff03c069a0 Basic Isabelle mode for jEdit -- http://www.jedit.org/
wenzelm
parents:
diff changeset
    13
[JEDIT_SETTINGS]/modes/
68ff03c069a0 Basic Isabelle mode for jEdit -- http://www.jedit.org/
wenzelm
parents:
diff changeset
    14
68ff03c069a0 Basic Isabelle mode for jEdit -- http://www.jedit.org/
wenzelm
parents:
diff changeset
    15
2) Add the following entry [JEDIT_SETTINGS]/modes/catalog
68ff03c069a0 Basic Isabelle mode for jEdit -- http://www.jedit.org/
wenzelm
parents:
diff changeset
    16
24889
wenzelm
parents: 24888
diff changeset
    17
  <MODE NAME="isabelle" FILE="isabelle.xml" FILE_NAME_GLOB="*.thy"/>
24888
68ff03c069a0 Basic Isabelle mode for jEdit -- http://www.jedit.org/
wenzelm
parents:
diff changeset
    18
68ff03c069a0 Basic Isabelle mode for jEdit -- http://www.jedit.org/
wenzelm
parents:
diff changeset
    19
Example catalog file:
68ff03c069a0 Basic Isabelle mode for jEdit -- http://www.jedit.org/
wenzelm
parents:
diff changeset
    20
24889
wenzelm
parents: 24888
diff changeset
    21
  <?xml version="1.0"?>
wenzelm
parents: 24888
diff changeset
    22
  <!DOCTYPE MODES SYSTEM "catalog.dtd">
wenzelm
parents: 24888
diff changeset
    23
  <MODES>
wenzelm
parents: 24888
diff changeset
    24
    <MODE NAME="isabelle" FILE="isabelle.xml" FILE_NAME_GLOB="*.thy"/>
wenzelm
parents: 24888
diff changeset
    25
  </MODES>
24888
68ff03c069a0 Basic Isabelle mode for jEdit -- http://www.jedit.org/
wenzelm
parents:
diff changeset
    26
24889
wenzelm
parents: 24888
diff changeset
    27
25854
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    28
Plugin installation
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    29
-------------------
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    30
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    31
1) Copy or symlink [ISABELLE_HOME]/lib/jedit/isabelle/isabelle.jar to
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    32
[JEDIT_SETTINGS]/jars/
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    33
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    34
2) Install scala-library.jar likewise (taken from the regular Scala
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    35
distribution, cf. the http://www.scala-lang.org/downloads/index.html)
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    36
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    37
3) Enable the plugin using the manager of jEdit; invoke the "isabelle"
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    38
editor action.  The resulting window may be docked, e.g. at bottom.
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    39
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    40
Note that the Errorlist plugin provides some useful options like "Show
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    41
error icons in the gutter", for immediate feedback of Isabelle
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    42
warnings and errors in the source text.  The Errorlist window may be
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    43
docked likewise.
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    44
ab6ce0d5662d added plugin installation;
wenzelm
parents: 24889
diff changeset
    45
24888
68ff03c069a0 Basic Isabelle mode for jEdit -- http://www.jedit.org/
wenzelm
parents:
diff changeset
    46
$Id$