RunestoneComponents
RunestoneComponents copied to clipboard
Report the language employed by a Scratch ActiveCode Window
With Scratch ActiveCode allowing multiple possible languages, it might help to inform a reader what language is being interpreted. I couldn't see it anywhere.
A suggestion. Change line 127 of runestone/activecode/js/acfactory.js
to something like
<h4 class="modal-title">Scratch ActiveCode (${lang})</h4>
Better would be a dictionary that translates the "shorthand" versions of lang
into proper language names, with capitalization, such as cpp
-> "C++". That felt like too much for me to try to do with a PR that I couldn't test properly, so an issue is going to be as good as it gets. ;-)