Unify syntax highlighting

Open
#497 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
32/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript

Research direction

Start by locating the Prism-based Markdown highlighting and the Wallace parser/highlight API integration used for tool output. Compare their behavior and performance with Shiki or the library suggested from pngwn, including removal costs when devtools closes. Done means all paths use one highlighting system, performance does not regress, and the resulting colors are acceptable.

Written by the indexing model from the issue text.

Description

dependencies platform: code improvement platform: design platform: performance

We use prism for markdown based highlighting and use wallace parser + highlight api for all tooling based highlight. Tools highlight perf is not too great, especially when removing highlights (like when closing devtools panel).

Perhaps shiki or even that lib from pngwn could be a smart alternative.

AC

  • everything uses the same highlight system
  • perf is not nagatively impacted, if anything it should be faster
  • colors match current highlight setup, but an exact match is not required
Dominant language
Svelte
Stars
4
Forks
0
Avg merge
2d 8h
Merged PRs (30d)
23

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from projectwallace/projectwallace.com

All issues in projectwallace/projectwallace.com

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.