https://github.com/n-pn/expygments
Syntax highlight for Elixir using pygments
https://github.com/n-pn/expygments
elixir pygments syntax-highlighting
Last synced: 2 months ago
JSON representation
Syntax highlight for Elixir using pygments
- Host: GitHub
- URL: https://github.com/n-pn/expygments
- Owner: n-pn
- License: unlicense
- Created: 2017-12-21T01:37:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-08-08T16:19:35.000Z (over 5 years ago)
- Last Synced: 2025-11-27T12:06:57.967Z (3 months ago)
- Topics: elixir, pygments, syntax-highlighting
- Language: Elixir
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ExPygments
Syntax highlight using [Pygments](http://pygments.org)
## Preinstall
ExPygments requires python3 `pygments` package in able to work.
```sh
pip3 install pygments
```
## Installation
```elixir
{:pygments, "~> 1.0"}
```
## Usage
```elixir
# highlight(source, language \\ "text")
html = Pygments.highlight("defmodule Bar do\nend\n", "elixir")
# For source code parsed through a markdown engine:
# highlight_escaped(source, language)
html = Pygments.highlight_escaped("<tag>", "html")
```
## License
UNLICENSE