basalt-rs / basalt-rs/basalt

Submission history does not use correct syntax highlighting

Open
#58 0 comments 0 reactions 0 assignees View on GitHub
bug good first issue
Dominant language
TypeScript
Stars
4
Forks
3
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When opening the submission history to a submission that used some language other than Java, i.e., Python, the file is still highlighted as Java. The submission history should use the language specified by the submission.

**To Reproduce**
1. Create submission using Python
2. Open submission history
3. See that the file uses Java syntax highlighting

**Expected behavior**
Submission history syntax highlighting should be the same as the language used in the submission.

**Screenshots**

![Image](https://github.com/user-attachments/assets/4beeccb3-f317-4dd6-bb0d-311f685ea92a)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with a Python submission, then trace the submission history view and its syntax-highlighting language selection. Done means the history displays the submitted code using the submission's language rather than Java; verify this for Python and the existing Java case.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.