-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
p5.js library Autocomplete and/or link to specific parts of reference #99
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
Comments
In the mean time, maybe we could just put a link to the reference https://p5js.org/reference/ somewhere in the editor menu bar? |
Ive tried compiling a tern definitions json file for p5 with tern's "condense" tool but it failed to work. Ive even tried it with other libraries like Three.js and jquery, and it worked. So condense works fine; I think the problem is the script. This was the command and the output : |
@ducklin5 I've never used tern before so I'm not sure how to help... want to give me more details as to what you've done so far and maybe we can attack it together? |
Yes! Im using tern on brackets and on sublime text. Ive got no experience with it either and Im just trying to follow the manual and guides that Ive found googling. From what I gather we can use the "condense" tool that comes with it to compile a json file of definition and autocomplete terms for p5. Another option is the configure the yuidoc to format the output in the same format as that of tern. |
Autocomplete file: https://p5js.org/reference/data.json |
@catarak, is this json file a tern plugin or auto completion specifically for the p5 web editor? |
@ducklin5 it's the output of running |
@catarak if this issue still not done.. I will be happy to work on this. |
y not just add typescript integration ? |
The autocompletion is actually very easy to do using
And then you include that |
Students requested a link to the p5.js reference in the editor. Ideally we would also eventually have an option where you could highlight a function name like
fill
, right-click, and have a "find in reference" option.The text was updated successfully, but these errors were encountered: