Skip to content

Instantly share code, notes, and snippets.

Created Oct 25, 2013
What would you like to do?
Pretty print clojure code
(use 'clojure.pprint)
(require ' [clojure.edn :as edn])
(let [file-contents (slurp "clojure_test2.clj")
process-file (with-out-str
(edn/read-string (str "[" file-contents "]"))
(println (subs process-file 1 (- (.length process-file) 1))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment