From kcardineaud@users.nuiton.org Tue Jun 28 17:36:36 2011
From: kcardineaud@users.nuiton.org
To: scmwebeditor-commits@list.nuiton.org
Subject: [Scmwebeditor-commits] r139 - trunk/src/main/webapp
Date: Tue, 28 Jun 2011 17:36:36 +0200
Message-ID: <20110628153636.775A11591A@nuiton.codelutin.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============7263593858699411617=="
--===============7263593858699411617==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Author: kcardineaud
Date: 2011-06-28 17:36:36 +0200 (Tue, 28 Jun 2011)
New Revision: 139
Url: http://nuiton.org/repositories/revision/scmwebeditor/139
Log:
Add Java mode for codemirror
Modified:
trunk/src/main/webapp/ModificationViewer.jsp
Modified: trunk/src/main/webapp/ModificationViewer.jsp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/src/main/webapp/ModificationViewer.jsp 2011-06-28 12:55:36 UTC (rev=
138)
+++ trunk/src/main/webapp/ModificationViewer.jsp 2011-06-28 15:36:36 UTC (rev=
139)
@@ -22,6 +22,9 @@
@@ -78,6 +81,7 @@
+
=20
@@ -143,6 +147,13 @@
document.getElementById('language').selectedIndex=3D4
<%
+ } else if(request.getAttribute("format")!=3Dnull && request.getA=
ttribute("format").equals("java")) {
+ typeEditor=3D"text/x-java";
+ %>
+
+ <%
}
=20
}
@@ -158,6 +169,7 @@
var editor =3D new CodeMirrorUI(textarea,uiOptions,codeMirrorOptions=
);
=20
+ =20
=20
+
=20