Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffwilliams/syn
Syntax Highlighter
https://github.com/jeffwilliams/syn
Last synced: 11 days ago
JSON representation
Syntax Highlighter
- Host: GitHub
- URL: https://github.com/jeffwilliams/syn
- Owner: jeffwilliams
- Created: 2023-01-29T01:32:26.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-05T01:01:10.000Z (5 months ago)
- Last Synced: 2024-07-01T17:19:24.128Z (5 months ago)
- Language: Go
- Size: 387 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Syn—Syntax Highlighting for Text Editors
Syn helps perform syntax highlighting by lexing source code text. It is based on, and large portions of the source code are taken from, Alec Thomas' [Chroma](https://github.com/alecthomas/chroma).
Compared to Chroma, Syn does not provide formatters or styles. It does properly lex text with Windows line endings (CRLF). It also allows incremental lexing via an iterator, rather than lexing the entire document at once and providing an iterator over the produced tokens. This can be useful for text editors.