rust-lang / rust-lang/mdBook

C preprocessor directives not highlighted in Coal/Navy themes

Open
#2,701 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-Highlighting C-enhancement
Dominant language
Rust
Stars
22.2k
Forks
1.9k
PR merge metrics
PR metrics pending

Description

Problem

You can see this on https://tavianator.com/2023/futex.html for example. Screenshot:

Screenshot

Ideally the #include and #define would get a different color than the rest of the text.

Proposed Solution

No response

Notes

No response

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

Reproduce the highlighting on the linked futex.html example and compare the Coal and Navy themes, focusing on how #include and #define are rendered. Trace the theme or syntax-highlighting entry point used for C code, then verify that preprocessor directives receive a distinct color in both themes without changing other text.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.