-
Notifications
You must be signed in to change notification settings - Fork 36
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
Colorized source
#15
Comments
As a status update on this feature - as of Ultra I was initially reluctant to replace However, since |
Looks like I can get what I want here out of using |
Also I should use |
I'm still not super happy with how this function currently handles macros. I think I've figured out a way around it but I haven't actually tested it yet. |
I'm going to leave this alone for a while. I've poked at it many times now and I think that while it's okay as it currently sits, the only "true" solution takes a radically different approach and instead delivers syntax highlighting rather than pretty-printing through fipp/puget/whidbey et al. This has two advantages: first, it avoids the (potentially unsafe) use of |
This commit leverages my latest creation, Glow, which has yet to be formally released. Suffice it to say that it modifies `clojure.repl/source` to actually rely on a syntax highlighting engine rather than Fipp/Whidbey/Puget, which print highlighted Clojure data structures. Actually figuring out how to bind the contents of ultra.repl/source to clojure.repl/source was something of a pain in the neck, and I'm not totally sure this will end up being the final approach, but it works well enough for me. Resolves #15
This commit leverages my latest creation, Glow, which has yet to be formally released. Suffice it to say that it modifies `clojure.repl/source` to actually rely on a syntax highlighting engine rather than Fipp/Whidbey/Puget, which print highlighted Clojure data structures. Actually figuring out how to bind the contents of ultra.repl/source to clojure.repl/source was something of a pain in the neck, and I'm not totally sure this will end up being the final approach, but it works well enough for me. Resolves #15
This commit leverages my latest creation, Glow, which has yet to be formally released. Suffice it to say that it modifies `clojure.repl/source` to actually rely on a syntax highlighting engine rather than Fipp/Whidbey/Puget, which print highlighted Clojure data structures. Actually figuring out how to bind the contents of ultra.repl/source to clojure.repl/source was something of a pain in the neck, and I'm not totally sure this will end up being the final approach, but it works well enough for me. Resolves #15
At the moment the
source
function just does a general pretty-print, giving us the following:This should be patched to provide a syntax-highlighted printing of the source in question.
The text was updated successfully, but these errors were encountered: