0
How to make app like SoloLearn for Java?
I want to make an app that teaches the basics of Java, but I don't know how to make a textfield that takes java code so it highlights classes and variables and what not, and I don't know how to make a console that shows if there were any errors in the code that was in the textfield. Is there a simple way to do this?
1 Resposta
+ 1
Make a web view app
Check the JS library, Danijel and Happy to help are using in their tutorial
prettify
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
https://code.sololearn.com/WiigcSaKlUx7/?ref=app
Highlight
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
https://code.sololearn.com/W39H0k35f3Ul/?ref=app