clj-ns-browser icon indicating copy to clipboard operation
clj-ns-browser copied to clipboard

syntax highlighting for clojure code

Open franks42 opened this issue 12 years ago • 2 comments

franks42 avatar May 06 '12 06:05 franks42

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 avatar May 06 '12 07:05 franks42

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

franks42 avatar May 07 '12 05:05 franks42