-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Adding Code Completion for active codes #44
Comments
It looks like the Code Mirror addon for code completion is fairly basic and only works for JavaScript: https://codemirror.net/demo/complete.html. It might be possible to extend to other languages if it's just a list of keywords that it brings up. That might still be useful for students. The matchbrackets.js add-on would also be useful for students and easy to add: https://codemirror.net/doc/manual.html#addons |
Beryl, There are a few other languages supported, html, css, javascript. I found a python version as well. I think it would be a fun project for an advanced HS student or college student that wanted to see how Python or html is done and to write one for Java. Maybe one of your teachers has a student looking for a real world project. Or it could be an option for one of Jan's students this summer. I have enabled one called anyword which simply looks at the words in the current editor and does autocompletion on those. Since lots of variables are reused many times in the code this is useful across all languages. I have also enabled the matchbrackets.js that you mentioned. Will release this with the saturday updates. |
For reference if/when someone picks this up. My simple changes to
We will know the mode we want based on the parameters to the activecode directive. |
Thank you for pursuing this! I'm excited to try out the new features this weekend. I'll arrange someone to work on it this summer. |
@bnmnetp @bhoffman0 I am interested in working on this project if no one has already been assigned. |
@bnmnetp I have followed your above code implementation for autocomplete, but I am wondering how I can test this in http://localhost:8000/index.html. So far I have added the code in VSCode, and run |
@dsanders12 you need to rebuild a test page after running npm run build. -- you can use activecode/tests to try this out. |
I do not see any PR linked to this. I am picking this fun project up! 😊 |
I catch up with Daize and will work on this idea with her too! |
It would be great to try out the code completion in the active code text areas (there should be an open source add-on in Code Mirror). This would really help students with learning disabilities and English as a second language learners in typing in their code. Thanks for anyone who wants to look into this!
The text was updated successfully, but these errors were encountered: