mProjectsCode / mProjectsCode/obsidian-shiki-plugin

[Question] Set text color from custom language definition

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

Nobody has claimed this yet.

question
Dominant language
TypeScript
Stars
238
Forks
25
PR merge metrics
No merged PRs in 30d

Description

I'm trying to set up a custom language definition, and one thing I would like to do is to color named colors and hex codes by their corresponding color. Is there any way to set the color of a matched pattern from the custom JSON language file, or would I also have to create a custom theme?

Contributor guide

No contributing guide indexed for this repository

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 by reviewing how custom language definitions and themes are represented in the plugin, focusing on whether a matched pattern can carry a dynamic color. The issue mentions no files or tests; done would require establishing whether the requested coloring is supported, and documenting or implementing a clear approach if it is not.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.