Skip to content

Automated Script to Update Keyword Syntax Highlighting #3336

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

Conversation

Harshit-7373
Copy link
Contributor

@Harshit-7373 Harshit-7373 commented Feb 7, 2025

Keyword Syntax highlighting still outdated #3163

Github-Harshit-7373

Fixes #3163

  1. Firstly , i Created a updateP5Data.js file to fetch , parse and store data as per needed.
  2. I added "update-p5": "node updateP5Data.js" this in the package.json as a script , This simplifies execution without typing the entire Node.js command.
  3. The command (npx husky add .husky/pre-commit "npm run update-p5") sets up an automated process using Husky for pre-commit Git hooks.

Changes:

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123

Keyword Syntax highlighting still outdated processing#3163

Github-Harshit-7373
@raclim raclim changed the title Solved issue # 3163 Automated Script to Update Keyword Syntax Highlighting Feb 20, 2025
@Harshit-7373
Copy link
Contributor Author

@raclim Thank you for reviewing my pull request. Is there anything you would like me to change or any file you want me to edit?

@raclim
Copy link
Collaborator

raclim commented Mar 13, 2025

Thanks for your work on this! After giving it some thought, I'm not sure if using the husky pre-commit is the option we might want to go with, since I feel that it's probably too frequent. We probably want to find a solution where this updates a bit more periodically rather than on every commit.

@raclim raclim closed this Mar 13, 2025
@Harshit-7373
Copy link
Contributor Author

Thank you for reviewing it, @raclim . I will surely come up with a new idea to solve this issue.

@Harshit-7373
Copy link
Contributor Author

@raclim I’ve been looking into the autocomplete hinter issue and have found a manual way to solve it. However, I believe an automatic solution would be more efficient. For that, I need some clarification on how the user’s code in sketch.js is stored.

Could you please provide details about:

  1. The file or database structure where the user’s code in sketch.js is stored?
  2. Any APIs or methods available to fetch the user’s code dynamically for processing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keyword Syntax highlighting still outdated
2 participants