Skip to content
Browse files

build&pushed [org.fife.ui/rsyntaxtextarea "2.0.3"] to clojars and add…

…ed to :dependency

adds syntax highlighting for clojure and seems jedit compatible
seems to work without issues - use:
(.setSyntaxEditingStyle (select (get-clj-ns-browser) [:#doc-ta]) org.fife.ui.rsyntaxtextarea.SyntaxConstants/SYNTAX_STYLE_CLOJURE)
to turn syntax highlighting for doc-ta
  • Loading branch information...
1 parent c870657 commit cd1454009fb261810ddfb4fd6f315fa23cdf1bca @franks42 committed May 5, 2012
Showing with 13 additions and 2 deletions.
  1. +6 −1 pom.xml
  2. +1 −0 project.clj
  3. +6 −1 src/clj_ns_browser/BrowserForm.java
View
7 pom.xml
@@ -17,7 +17,7 @@
<scm>
<connection>scm:git:git://github.com/franks42/clj-ns-browser.git</connection>
<developerConnection>scm:git:ssh://git@github.com/franks42/clj-ns-browser.git</developerConnection>
- <tag>8a17d412e55bb99a331db2305aeb1ae8f4a9e80b</tag>
+ <tag>c8706573f5dd282e0e81f0c34379c9c80a9fa1da</tag>
<url>https://github.com/franks42/clj-ns-browser</url>
</scm>
<build>
@@ -99,6 +99,11 @@
</exclusions>
</dependency>
<dependency>
+ <groupId>org.fife.ui</groupId>
+ <artifactId>rsyntaxtextarea</artifactId>
+ <version>2.0.3</version>
+ </dependency>
+ <dependency>
<groupId>org.thnetos</groupId>
<artifactId>cd-client</artifactId>
<version>0.3.4</version>
View
1 project.clj
@@ -10,6 +10,7 @@
[hiccup "0.3.8"]
[org.clojure/tools.trace "0.7.3"]
[clojure-complete "0.2.1" :exclusions [org.clojure/clojure]]
+ [org.fife.ui/rsyntaxtextarea "2.0.3"]
[org.thnetos/cd-client "0.3.4"]]
:dev-dependencies [[lein-marginalia "0.6.0"]
;[franks42/debug-repl "0.3.1-FS"]
View
7 src/clj_ns_browser/BrowserForm.java
@@ -32,6 +32,10 @@
import javax.swing.JMenuItem;
import javax.swing.JRadioButtonMenuItem;
+// import org.fife.ui.RSyntaxTextArea;
+import org.fife.ui.rtextarea.*;
+import org.fife.ui.rsyntaxtextarea.*;
+
public class BrowserForm extends JPanel {
private JTextField txtNsFilter;
private JTextField txtVarsFilter;
@@ -167,7 +171,8 @@ public Object getElementAt(int index) {
scrollPane_2.setName("doc-ta-sp");
add(scrollPane_2, "cell 5 3 3 1,grow");
- JTextArea txtrDocArea = new JTextArea();
+// JTextArea txtrDocArea = new JTextArea();
+ JTextArea txtrDocArea = new RSyntaxTextArea();
scrollPane_2.setViewportView(txtrDocArea);
txtrDocArea.setEditable(false);
txtrDocArea.setName("doc-ta");

0 comments on commit cd14540

Please sign in to comment.
Something went wrong with that request. Please try again.