Support for pycon (python interactive snippets)
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 218
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Lots of Python tooling uses doctests and interactive snippets to show code.
i.e:
>>> def add(x, y):
... return x + y
>>> add(2, 3)
5
The benefit of this is multiple:
- you can test the docs
- you can see both the input and output
- it is a standard that jupyter supports as well
Consider this my vote to add syntax highlighting for pycon like pygments does.
BTW, thanks for Pandoc. 🙏 It is a lifesaver. I've migrated most of my custom rst tooling to it. (Still can't use rst to create LibreOffice slides because none of the existing tooling has the features I need. But I digress). Thanks again!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the requested pycon behavior with Skylighting's existing Python support and the Pygments convention referenced in the issue. Use the example in the issue to check prompts, continuation lines, inputs, and outputs, and add coverage demonstrating that the complete interactive snippet is highlighted correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell, python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100