clj-ns-browser
clj-ns-browser copied to clipboard
syntax highlighting for clojure code
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)
pushed snapshot to github and clojars that turns syntax highlighting on for Source/Examples/Meta, off otherwise