4 ms·
In my mind, the ideal way to accomplish this would be: - Encode the program in a data format like JSON or XML. Ideally, this should be readable (though verbose
by ar-nelson 12y ago
In my mind, the ideal way to accomplish this would be:
- Encode the program in a data format like JSON or XML. Ideally, this should be readable (though verbose) on its own.
- Create an IDE that renders the JSON/XML using the typographical stylistic flourishes, and that possibly allows the definition of new styled "blocks". This could even be done with CSS.
Creating a language that is sufficiently connected to its IDE that it can define new syntax highlighting, autocompletion, etc. in the code itself would go a long way toward making something like this practical. DrRacket (http://racket-lang.org/ http://racket-lang.org/) sort of does this already; it even has image literals!
- nawitus 12y agoWhy use JSON or XML instead of storing it as code? The IDE can parse it even if it's normal code. In fact, all IDEs already parse and understand the code to a degree.