webdevcody / webdevcody/code-racer

[FEATURE]: Add code block to Add Snippet page

Open
#758 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
697
Forks
594
PR merge metrics
No merged PRs in 30d

Description

Feature Summary

As a user, I want the ability to insert a code block in the Code Snippet textarea so that I can see my code in its preformatted text.

Whether it's with a traditional code block in a text editor or a useState hook to create a state variable codeView toggle, I feel that users would find it more aesthetically pleasing to see their custom code as displayed in their IDE.

Code of Conduct
  • I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

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.

Research direction

Start at the Add Snippet page and trace the Code Snippet textarea and any existing state or rendering logic. Determine whether the intended result is an in-editor code block or a separate preformatted view, then implement the agreed behavior and verify that custom code displays with preserved formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.