Rouge
A pure Ruby code highlighter that is compatible with Pygments (by rouge-ruby)
linguist
Language Savant. If your repository's language is being reported incorrectly, send us a pull request! (by github-linguist)
Our great sponsors
Rouge | linguist | |
---|---|---|
5 | 40 | |
3,271 | 11,785 | |
0.0% | 1.2% | |
7.5 | 8.7 | |
8 days ago | 2 days ago | |
Ruby | Ruby | |
BSD 1-Clause License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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
Posts with mentions or reviews of Rouge.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-21.
-
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:
-
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.
linguist
Posts with mentions or reviews of linguist.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-27.
-
Show HN: Fix – An open source cloud asset inventory for cloud security engineers
I dunno if this interests you, but you actually have influence over the formatting of https://github.com/someengineering/fix-cf/blob/main/fix-role... via .gitattributes communicating to GH that it's actually yaml: https://github.com/github-linguist/linguist/blob/master/docs...
-
Change F#'s Color on GitHub
There’s already a draft pr for this: https://github.com/github-linguist/linguist/pull/6686
-
TIL: Github seems to recognize ebuilds as a format. Is this a new github feature? Or has this been here since forever?
GitHub uses Linguist to
-
Where the hell do I have any vb in my configs?
I have found that: https://github.com/github-linguist/linguist/blob/master/docs/troubleshooting.md, but I'm also currently not at home, so I will check it out later.
-
What is the proper language markup type we should use for a MakeFile code snippet?
Another option is to use Linguist which is what GitHub uses (I use linguist via .gitattributes files for all of my code projects). It is community driven and supports essentially every language possible: see languages.yml.
-
Finding projects on GitHub: Topics, Languages, and Collections
Once you selected a topic you can further filter the projects by language. This means programming language as recognized by the linguist tool of GitHub. See what they say about repository languages
-
Track my coding progress on GitHub with a .NET Worker Service
As I later found out, GitHub uses the Linguist library to measure the amount of lines written in a specific language... which is still pretty magic 🪄.
- How to get font colors but not syntax highlighting for a file in custom language?
-
Debugging fontification error while writing a new mode
;;; shell-session --- Markup shell commands with their output. ;;; ;;; Commentary: ;;; ;;; Colorizes blocks similar to "console" in GitHub Flavored Markdown ;;; which is defined as "ShellSession" in ;;; https://github.com/github/linguist which uses the regexp in: ;;; https://github.com/atom/language-shellscript/blob/master/grammars/shell-session.cson ;;; ;;; Code: ;;; ;;; Include this in your .emacs init file: ;;; ;;; (require 'shell-session-mode) (defcustom shell-session-prompt-regexp (regexp-quote "^[^[:space:]]*$[[:space:]]+[^[:space:]]+$") "Regexp matching a shell $ prompt with a command." :type 'regexp :group 'shell-session) (define-derived-mode shell-session-mode fundamental-mode "shell-session-mode" "A major mode to display shell sessions." :group 'shell-session (font-lock-add-keywords nil '((shell-session-prompt-regexp . font-lock-keyword-face)))) (add-to-list 'auto-mode-alist '("\\.sh-session\\'" . shell-session-mode)) (provide 'shell-session-mode) ;;; shell-session-mode.el ends here.
-
massCode v3 - An open source snippets manager is out 🚀
massCode uses Codemirror as the basis for the editor and .tmLanguage as the grammar for syntax highlighting. This tandem opens the door to over 600 existing grammars. The application currently supports more than 160 grammars. In addition to .tmLanguage, the application supports .tmTheme for themes. There is also…
What are some alternatives?
When comparing Rouge and linguist you can also consider the following projects:
CodeRay - Fast and easy syntax highlighting for selected languages, written in Ruby.
pygments.rb - 💎 Ruby wrapper for Pygments syntax highlighter
Highlight.js - JavaScript syntax highlighter with language auto-detection and zero dependencies.
Pygments
kotlin-latex-listing - A syntax highlighting template for the Kotlin language in LaTeX listings.
Gollum - A simple, Git-powered wiki with a sweet API and local frontend.
Diffy - Easy Diffing in Ruby
Device Detector - DeviceDetector is a precise and fast user agent parser and device detector written in Ruby
gitlab