Awesome work to have made the code so simple- how have you done the highlighting functionality?
No, only code editing. The main feature on CodeJar 🍯is availability to use any highlighting library, or write your own! See example with rainbow text for example.
This looks awesome! I’ve got a few toy projects I’m interested in using this in - mostly as a markdown editor.
It’s hard for me to think of any real practical purposes for this outside of online tutorials or other learning, but it is very cool nonetheless. If there’s a way to attach a back-end for executing code, or better yet, embedding some in WASM (optionally, of course), this would be really awesome!
This works really nicely on my phone - much nicer than other things I’ve tried
Also line numbers: https://medv.io/codejar/#line-numbers
This is great work! This is simple to set-up yet flexible.
I have a great use case in my company for this kind of technology: we build web editors to abstract the complexity of creating configurations for some of our products (they are basically very fancy forms). While these web editors cover 95% of our features, we (the Engineering team) sometimes have to edit some definition files manually for complex scenarios (such as defining original and tricky CSS animations). We could add an advanced mode on some screens that would display a CodeJar micro editor to allow developers and advanced users to achieve this directly in the web application.
Great. Nice to hear that.
I played with this a bit and like the simplicity. The auto-balance and -indent rules are cleverly implemented for JS/C/Java-like syntax but I might submit a PR to at least allow them to be disabled, if not customized. Any other plans for new config options and/or features, or does this basically meet your needs as-is?
Yes, will add more with time. PRs are welcome.