Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmadrosid/hl
🌴 Syntax highlighting in Rust.
https://github.com/ahmadrosid/hl
Last synced: about 2 months ago
JSON representation
🌴 Syntax highlighting in Rust.
- Host: GitHub
- URL: https://github.com/ahmadrosid/hl
- Owner: ahmadrosid
- License: mit
- Created: 2021-12-17T16:59:00.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-26T04:31:26.000Z (6 months ago)
- Last Synced: 2024-11-01T06:42:11.559Z (about 2 months ago)
- Language: Rust
- Homepage:
- Size: 1.78 MB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🌴 HL (WIP)
Syntax highlighting written in Rust inspired by github syntax highlighter. The project is designed to generate html syntax highlighting. Originally I used at [heline.dev](https://heline.dev).### 💡 Example
```bash
cargo run --package hl --example html examples/html.rs -l rust
```### 💡 Example Result
![demo](/demo.png)
It will produce html code like this:
```html
// The comment section
fn main() {
let matches = App::new("hl")
.version("0.1.0");
let ada = 5;
if true {
String::new();
let a : Vec<char> = vec!['0'];
}
}fn process(a: &str, b: char) {
println!(a, b);
}```
See the result in browser [here](https://play.tailwindcss.com/JevzqYGpuH).
## Lexers
- [x] ActionScript ( ✅ Done )
- [x] Ada ( ✅ Done )
- [x] Bash ( ✅ Done )
- [x] C ( ✅ Done )
- [ ] Clojure ( 🚧 In Progress )
- [x] CSS ( ✅ Done )
- [x] CUDA ( ✅ Done )
- [x] Dart ( ✅ Done )
- [x] CPP ( ✅ Done )
- [x] C# ( ✅ Done )
- [x] Go ( ✅ Done )
- [ ] HTML ( 🚧 In Progress )
- [x] Ruby ( ✅ Done )
- [ ] Rust ( 🚧 In Progress )
- [x] Java ( ✅ Done )
- [x] Javascript ( ✅ Done )
- [x] JSON ( ✅ Done )
- [x] Kotlin ( ✅ Done )
- [x] Lua ( ✅ Done )
- [x] Markdown ( ✅ Done )
- [x] Nim ( ✅ Done )
- [x] PHP ( ✅ Done )
- [ ] Python ( 🚧 In Progress )
- [x] Typescript ( ✅ Done )
- [ ] Vue ( 🚧 In Progress )
- [x] Yaml ( ✅ Done )
- [x] Zig ( ✅ Done )
- [x] Toml ( ✅ Done )
- [x] Lua ( ✅ Done )
- [x] Groovy ( ✅ Done )
- [x] Makefile ( ✅ Done )
- [x] Erlang ( ✅ Done )
- [x] Vlang ( ✅ Done )
- [x] Coffescript ( ✅ Done )
- [x] Protocol Buffer ( ✅ Done )