https://github.com/zyedidia/flare
Syntax highlighting engine built using GPeg
https://github.com/zyedidia/flare
Last synced: 9 months ago
JSON representation
Syntax highlighting engine built using GPeg
- Host: GitHub
- URL: https://github.com/zyedidia/flare
- Owner: zyedidia
- License: mit
- Created: 2021-06-10T21:52:05.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-13T02:46:10.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T11:45:44.017Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 87.9 KB
- Stars: 14
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flare
Flare is a syntax highlighting library built using the incremental parser [GPeg](https://github.com/zyedidia/gpeg).
Features:
* Supports fast incremental rehighlighting for use in an editor.
* Can load and use highlighters at runtime.
* Multiple languages are supported, and it is easy to add more (check the `languages/` directory).
* Supports limited context-sensitivity (back references) for handling HERE-doc style blocks.
* Supports including languages within each other.
* Fairly efficient.
* Can format highlighted code as HTML output.
See the `flare` program in `./cmd/flare` for an example that can highlight code files at the terminal
or output highlighted HTML.