Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrmarble/prism
Create beautiful images of your code directly from the terminal
https://github.com/mrmarble/prism
capture carbon cli code screenshot
Last synced: 2 months ago
JSON representation
Create beautiful images of your code directly from the terminal
- Host: GitHub
- URL: https://github.com/mrmarble/prism
- Owner: MrMarble
- License: gpl-3.0
- Created: 2022-05-04T20:24:39.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T22:43:04.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T19:22:24.433Z (7 months ago)
- Topics: capture, carbon, cli, code, screenshot
- Language: Go
- Homepage:
- Size: 397 KB
- Stars: 19
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![logo](assets/logo.svg)
# Prism![GitHub](https://img.shields.io/github/license/mrmarble/prism)
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/mrmarble/prism)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/mrmarble/prism)
[![Go Report Card](https://goreportcard.com/badge/github.com/mrmarble/prism)](https://goreportcard.com/report/github.com/mrmarble/prism)
[![Go Reference](https://pkg.go.dev/badge/github.com/mrmarble/prism.svg)](https://pkg.go.dev/github.com/mrmarble/prism)Create beautiful images of your source code directly from your terminal.
![example](assets/example.png)
# Installation
Precompiled `prism` binaries can be found at [releases](https://github.com/mrmarble/prism/releases) page.
Instructions below show how to build `prism` from sources.
```sh
go install github.com/mrmarble/prism/cmd/prism@latest # or target a specific version @v0.1.0
```
# Usage
Be sure `prism` executable is under your `$PATH`.Usage of **prism**: prism [input file] [args...] Run prism without arguments to get help output.
```
Flags:
-h, --help Show context-sensitive help.
-l, --lang=STRING Language to parse.
-o, --output="prism.png" Output file name
--version Print version information and quit
--header Display header
--lines=STRING Specify a range of lines instead of reading the whole file. Ex: 10-20
-n, --numbers Display line numbers
-r, --relative Use relative numbers. Needs --lines and --numbers
```## Supported languages
See [languages](tokenizer/languages/) for a list of implemented languages.