Syntax highlighting in packages
Nobody has claimed this yet.
- Dominant language
- Macaulay2
- Stars
- 435
- Forks
- 297
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 11
Description
A pretty glaring caveat of syntax highlighting is that it doesn't work for packages. Here's an example with only symbols from Core being highligted, which looks really odd.
A pretty simple solution would be to generate a prism grammar for each package in installPackage and load it in the header of html files from that package.
It would be great if the same worked for emacs.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the installPackage entry point and how package HTML files are generated. Trace how the HTML header currently loads syntax highlighting, then determine how package-specific grammar generation and Emacs support fit into that flow. Done means package symbols are highlighted in generated HTML and the requested highlighting also works in Emacs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- emacs, html
- Domain
- documentation, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100