Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax highlighting for clojure code #41

Open
franks42 opened this issue May 6, 2012 · 2 comments
Open

syntax highlighting for clojure code #41

franks42 opened this issue May 6, 2012 · 2 comments

Comments

@franks42
Copy link
Owner

franks42 commented May 6, 2012

No description provided.

@franks42
Copy link
Owner Author

franks42 commented May 6, 2012

build&pushed [org.fife.ui/rsyntaxtextarea "2.0.3"] to clojars and added to :dependency
adds syntax highlighting for clojure and seems JTextArea compatible

RSyntaxTextArea
http://fifesoft.com/rsyntaxtextarea/index.php

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

BrowserForm.java
import org.fife.ui.rtextarea.;
import org.fife.ui.rsyntaxtextarea.
;
...
// JTextArea txtrDocArea = new JTextArea();
JTextArea txtrDocArea = new RSyntaxTextArea();
clojure-repl:
(.setSyntaxEditingStyle (select (get-clj-ns-browser) [:#doc-ta]) org.fife.ui.rsyntaxtextarea.SyntaxConstants/SYNTAX_STYLE_CLOJURE)

@franks42
Copy link
Owner Author

franks42 commented May 7, 2012

pushed snapshot to github and clojars that turns syntax highlighting on for Source/Examples/Meta, off otherwise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant