readline
chroma
readline | chroma | |
---|---|---|
3 | 14 | |
73 | 4,183 | |
- | - | |
7.5 | 8.7 | |
17 days ago | 11 days ago | |
Go | Go | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
readline
-
CLI application libraries, updated versions (readline and spf13/cobra console).
A readline shell library: https://github.com/reeflective/readline.The `readline` library has been fully rewritten to provide full support for the widespread `.inputrc` init file format (used by bash shells and all programs using the GNU C Readline library). The library has been rewritten into a much more robust codebase with complete test coverage of the core code.
-
Show HN: New set of Go libraries for CLI Development
This library wraps the readline library (described below) and leverages cobra commands in order to provide a closed-loop console working with cobra commands out of the box, also providing many comfort-of-life features at minimum cost, like support for oh-my-posh prompt engines, different menus and much more.
Readline (https://github.com/reeflective/readline)
-
Libraries for CLI and console applications
Readline (https://github.com/reeflective/readline) Readline libraries in pure Go already exist, and the chzyer/readline one is widely used. However they might lack some features, or even a full-fledged Emacs/Vim edition mode. Most of them lack many UI features found in common shells. Readline has been written to bring a new shell library with features found in most recent shells, with a simple API for developpers.
chroma
- Alternative to Pygments
-
Sweeter searches with Pagefind
In Hugo and its built-in Chroma syntax highlighting, a code block begins with:
-
The strongest principle of the blog's growth lies in the human choice to deploy it
Hugo -> goldmark -> goldmark-highlighting -> chroma
- How to make code samples like this on the website?
-
Virgil: A Fast and Lightweight Programming Language That Compiles to WASM
I've used a markdown to html converter to convert my blog posts into HTML with very nice and customizable code samples... in my case I used Go's Blackfriday library with bfchroma[1] doing syntax highlighting with Chroma[2]. To add your language to Chroma you have to provide a lexer, which in turn is written in Pygments[3] syntax.
[1] https://github.com/Depado/bfchroma/
[2] https://github.com/alecthomas/chroma#supported-languages
[3] https://pygments.org/docs/lexerdevelopment/
-
Generating HMTL and MD files from .TXT in GO
quick for generating Html and syntax highlighting code blocks
-
Tran - 🖥 Securely transfer and send anything between computers with TUI.
Chroma
- Chroma takes source code and other structured text and converts it into syntax highlighted HTML, ANSI-coloured text, etc.
-
Screenshot Sunday: What does your Emacs look like today?
For books from other publishers, I am just hardcoding language directly on an ad hoc basis. I briefly considered off-loading language detection to a library like chroma, but that might be too much work for little benefit.
-
🐻 Go data validation and filtering with gookit/validate
Great blog, you should definitely do research on how you could implement a syntax highlighter for the code parts. Go Hugo for example, uses Chroma. Nice work 👍
What are some alternatives?
console - Closed-loop application library for Cobra commands (powerful, ready-to-run and easy to use)
golang-ical - A ICS / ICal parser and serialiser for Golang.
flags - Generate cobra command trees from structs. Go-flags compliant tags. Advanced CLI functionality, out-of-the-box.
prism.el - Disperse Lisp forms (and other languages) into a spectrum of colors by depth
sflags - Generate flags by parsing structures
Pake - 🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用
go-flags - go command line option parser
doom-modeline - A fancy and fast mode-line inspired by minimalism design.
go-arg - Struct-based argument parsing in Go
colorize - A Syntax Highlighting library
readline - Readline is a pure go(golang) implementation for GNU-Readline kind library
home - my linux home settings