Rouge
bitdowntoc
Rouge | bitdowntoc | |
---|---|---|
5 | 7 | |
3,284 | 61 | |
0.2% | - | |
7.6 | 7.9 | |
4 days ago | 7 days ago | |
Ruby | Kotlin | |
BSD 1-Clause License | GNU General Public License v3.0 or later |
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.
Rouge
-
Simple Dev.to Article Improvements
To see if a particular language is supported you can use Rouge's handle tool rougify. First install a ruby interpreter. Then checkout the rouge source code and run bin/rougify list in the source code root directory:
-
Doesn't anybody use -w?
But... it seems like so many programs were written without this rudimentary check on. Consider this example. I installed Rouge, the well regarded syntax highlighter. Here's some basic code, almost copied directly from their github page:
- Rouge syntax highlighter removes support for Solidity “pyramid scheme”
-
Syntax highlighting library support for modern frontend frameworks
I was going to write a post about Svelte and I was checking if it is a language that is supported by the highlighting library I use (Rouge). It is not! I guess I could fudge it by using HTML as the language for the code blocks because it is HTML-like. Or add a lexer/extension myself! 🤔
-
Glimmer DSL for LibUI Code Area (Ruby Tooling Future)
Brandon Weaver has recently contacted me on the Glimmer Gitter to ask questions about Glimmer DSL for LibUI. He also mentioned the node pattern tool written by Marc-André Lafortune (a fellow Rubyist I know in Montreal), which is hosted on Heroku. Brandon said he was excited about the possibility of implementing something similar in pure Ruby using Glimmer DSL for LibUI by leveraging the rouge syntax highlighting gem. He has even blogged about the Ruby Tooling subject in the past with the title "Future of Ruby - AST Tooling", which Matz (creator of Ruby) has alluded to before.
bitdowntoc
-
From Jar to Brew: distribute your Java programs easily with Homebrew and GitHub Actions
This is inspired by my work to distribute bitdowntoc with brew and aims at answering two questions:
-
Simple Dev.to Article Improvements
This leads to the next related topic: a table of contents. While not an out of the box feature there's a nice and simple solution for it. As an example, if I take one of my articles and copy everything besides the already generated ToC:
-
Python Networking: Servers
Note: I've added table of contents to previous installments so they'll hopefully be easier to navigate. Thanks to derlin for the nifty TOC generation tool!
- Finally a clean and easy way to add Table of Contents to dev.to articles 🤩
-
How to create nightly releases with Github Actions
https://github.com/derlin/bitdowntoc ⟶ workflow
-
bitdowntoc: markdown TOC for all (even BitBucket 😉)
bitdowntoc is a flexible Markdown TOC Generator, available both as a standalone jar and a free online service.
What are some alternatives?
CodeRay - Fast and easy syntax highlighting for selected languages, written in Ruby.
docker-compose-viz-mermaid - Generate beautiful visuals from docker-compose files. The mermaid graph can be exported to PNG, SVG, or edited directly in https://mermaid.live.
pygments.rb - 💎 Ruby wrapper for Pygments syntax highlighter
tip - GitHub Action to keep a 'tip' pre-release always up-to-date
Highlight.js - JavaScript syntax highlighter with language auto-detection and zero dependencies.
bbdata-api - The core of BBData: its API (and database definition)
Pygments
bbl - Read, search Holy Bible in command line
Gollum - A simple, Git-powered wiki with a local frontend and support for many kinds of markup and content.
ktlint - An anti-bikeshedding Kotlin linter with built-in formatter
linguist - Language Savant. If your repository's language is being reported incorrectly, send us a pull request!
detekt - Static code analysis for Kotlin