Re:Show HN: C2html – HTML Syntax highlighting for snippets o...
by cozis on Saturday May 07, 2022 @09:46PM
(#31300468)
Hello to everyone!
This is a tool I build to use in my own blog (where I mainly talk about C programming).
I considered using other available tools but they either:
1. used client-side javascript to work
2. only highlighted based on the keywords
3. only could be used online
so I thought It would be fun to write one myself. It turned out pretty nicely in my opinion!
Re:Show HN: C2html – HTML Syntax highlighting for snippets o...
by ksaj on Sunday May 08, 2022 @12:48AM
(#31301389)
I always use vi :TOhtml so the code I post looks like the code I wrote (colouring and indenting the same, etc). Your html output might be more modern, though. The --prefix et al are pretty slick.
This is a tool I build to use in my own blog (where I mainly talk about C programming).
I considered using other available tools but they either: 1. used client-side javascript to work 2. only highlighted based on the keywords 3. only could be used online
so I thought It would be fun to write one myself. It turned out pretty nicely in my opinion!