HarshKapadia2 / HarshKapadia2/git-graph
Add syntax highlighting
- Dominant language
- JavaScript
- Stars
- 30
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
- In the `RawDataDisplay` component, add syntax highlighting to the Object Content field.
- One way to implement it could be to extract the file extension form the Object Name field and use that to identify the language.
- Eg: `script.js` ➡️ `js` ➡️ `javascript`
- Maybe `js` itself will work and the last transformation of `js` to `javascript` might not be required, but then would `mjs` work?
- A dynamic syntax highlighter would be required, not a static one, because nothing is server rendered and files can be of any language.
- Language support will have to be decided.
- Maybe HTML, CSS, JS, Shell, Bash, YAML and Python for now.
Contributor guide
Assessment
This issue has not been assessed yet.