Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add line numbers toggle on code snippets 🔢

Open Beginner friendly
#517 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Quiet
Tech stack
javascript, react
Domain
frontend

Research direction

Start in client/src/components/Board/TaskCard.jsx and read how code snippets are rendered with react-syntax-highlighter. Add a toggle for its built-in line-number display; done means users can show and hide line numbers on snippets without triggering the task card.

Written by the indexing model from the issue text.

Description

good first issue

Add line numbers toggle on code snippets 🔢

File: client/src/components/Board/TaskCard.jsx

Code snippets show no line numbers 💀
Hard to reference specific lines fr!!

Fix:
const [showLineNums, setShowLineNums] = useState(false)

<button
onClick={(e) => {
e.stopPropagation()
setShowLineNums(v => !v)
}}
className="text-[10px] text-[#555]
hover:text-purple-400 transition">
{showLineNums ? '# hide' : '# lines'}

<SyntaxHighlighter
showLineNumbers={showLineNums}
...

~6 lines! showLineNumbers built into
react-syntax-highlighter ✅
No backend needed 🎯

Dominant language
JavaScript
Stars
39
Forks
105
Avg merge
1d 20h
Merged PRs (30d)
28

Getting set up

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 anoopcodehack/DevBoard

All issues in anoopcodehack/DevBoard

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.