golang-ical
chroma
Our great sponsors
golang-ical | chroma | |
---|---|---|
1 | 11 | |
127 | 3,362 | |
- | - | |
6.6 | 7.8 | |
3 months ago | 12 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.
golang-ical
-
Best iCal (ics) library for serialization?
I went ahead with https://github.com/arran4/golang-ical after a lot of googling, but I had to hand-roll alerts VALARM with no help of static types.
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
-
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's everyone working on this week? [2021, week 17]
So I pushed my code and made a pull request.
-
Hugo: light syntax highlight
Hugo has a built-in syntax highlight that uses Chroma, a library written in go.
-
Syntax Highlighting in a Webpage Without JavaScript
In Go we have https://github.com/alecthomas/chroma, and I implemented the lexer that the Caddy docs use for syntax highlighting the Caddyfile (see https://caddyserver.com/docs/caddyfile/concepts for example). What's cool about this is Caddy is serving that as a markdown rendered via Go templates, with Chroma for code blocks. So Caddy can highlight its own config.
What are some alternatives?
Ferret - Declarative web scraping
badger - Fast key-value DB in Go.
prism.el - Disperse Lisp forms (and other languages) into a spectrum of colors by depth
doom-modeline - A fancy and fast mode-line inspired by minimalism design.
ristretto - A high performance memory-bound Go cache
web - The source code for the Standard Ebooks website.
colorize - A Syntax Highlighting library
phpgrep - Syntax-aware grep for PHP code.
.emacs.d
language-haskell - Highlighting support for the Haskell language in visual studio code.
malayalam-holidays - Generate ics calendar for holidays in Malayalam
problem-solving - 🦋 Problem Solving, a repo for handling problems that require review, deliberation and possibly debate