pygments / pygments/pygments.rb

No way to add custom styles

Open
#46 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
583
Forks
142
Avg merge
1h 27m
Merged PRs (30d)
2

Description

There is no way to add a custom style, without forking the code and dropping it into the pygments styles directory. This seems…irritating.

I'm not sure the best way to go about this, but some way to point to a python script in the filesystem that contains a style would be welcome

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 pygments.rb uses the Pygments styles directory and how styles are exposed to Ruby callers. The issue suggests accepting a Python script from the filesystem; done should let users add a custom style without forking or copying it into the bundled styles directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, ruby
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.