mh-ssg VS Highlight.js

Compare mh-ssg vs Highlight.js and see what are their differences.

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
mh-ssg Highlight.js
13 83
1 23,076
- 0.5%
0.0 8.7
over 2 years ago 5 days ago
JavaScript JavaScript
MIT License BSD 3-clause "New" or "Revised" 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.

mh-ssg

Posts with mentions or reviews of mh-ssg. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-18.
  • Publishing my first package
    1 project | dev.to | 26 Nov 2021
    This week, I've published my 1st package on npm - mh-ssg - a static site generator CLI.
  • Adding Continuous Integration to a Project
    2 projects | dev.to | 18 Nov 2021
    I also worked on another project, mh-ssg, and added tests to this project as well. I created unit tests for a function called processFolder(). This function accepts an input folder path, output folder path and stylesheet URL. I created two unit tests, one which tests when a valid input folder containing files is passed to the function and one which tests when a non-existent folder is passed to the function. The function logs a message to the console depending on how many files are saved in the output folder, so the tests I wrote tested for these console logs.
  • Add testing to SSG
    3 projects | dev.to | 12 Nov 2021
    For this lab, I picked Jest as the testing tool for mh-ssg. This is a popular Javascript testing framework thanks to its simplicity and ease of usage.
  • Adding Static Analysis Tools to SSG
    3 projects | dev.to | 4 Nov 2021
    To maintain the quality of source code, I added a formatter and a linter for my project.
  • Static Site Generator - Support static files
    4 projects | dev.to | 28 Oct 2021
    Throughout the previous week, I was exploring Docusaurus and found that they have a feature to support static files. I find this feature very useful for any static site generator since images, favicons, stylesheets, etc. are very common parts of a webpage. Therefore, I decided to add this feature in my tool.
  • Code Refactoring and Rebase
    1 project | dev.to | 14 Oct 2021
    As new features are added to the tool, I realized that the logic is not clear anymore and some parts were duplicated, making it inefficient and hard to maintain. This time, I decided to focus on removing those duplications by moving the statements to the appropriate place and extracting function for reusability. All the refactoring was done through a single commit with the help of git rebase.
  • Working with git remote - approving new feature
    2 projects | dev.to | 8 Oct 2021
    Luke also implemented the same feature for my project. His code in general was good but I suggested some changes including separating modules and combining functions to remove code duplicates.
  • A different way of reviewing pull requests
    3 projects | dev.to | 7 Oct 2021
    After looking through my classmates' projects, I decided to work on Minh Hang's static site generator and filed an issue to her repo.
  • Merges and conflicts
    1 project | dev.to | 30 Sep 2021
    In the last update, my friend - Dustin - helped to add Markdown as a valid input for my tool. Markdown syntaxes are different from HTML syntaxes and he has worked on converting some of them. This time I decided to add two more:
  • Collaboration and pull requests
    2 projects | dev.to | 23 Sep 2021
    I've been sending a lot of pull requests but this was actually my first time receiving one 😄 and Dustin was my first contributor. He also proposed to add Markdown support for my tool and to parse all the headings, bold, italics and link from markdown into the corresponding HTML tags. I scanned through the pull request and found some minor issues, including missing new feature in documentation and missing the handling of the output file name. We also had different opinions about the implementation of .txt file and .md file. However after discussion, we came to agreement and I approved his changes.

Highlight.js

Posts with mentions or reviews of Highlight.js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-08.
  • Vala Programming Language
    14 projects | news.ycombinator.com | 8 Apr 2024
    > it was designed to resemble C#

    I actually first heard of Vala just a few days ago when I was looking at a C#-related PR[1] for highlight.js:

    > This fails the tests as the Vala default.txt is recognized now as C#. However, Vala is very close in syntax to C#, and the default.txt also seems to be valid C# so not sure what to do about this.

    [1] https://github.com/highlightjs/highlight.js/pull/3906

  • Dev.to and GitHub usage pl Syntax Highlighter
    1 project | dev.to | 17 Mar 2024
    About GitHub Source - https://github.com/highlightjs/highlight.js/issues/1224
  • Code Syntax highlighting in Next Js
    1 project | dev.to | 15 Jan 2024
    Let's get started by installing the highlight js
  • Build a simple code editor
    2 projects | dev.to | 25 Dec 2023
    Luckily, implementing syntax highlighting in our simple code editor is easy with the use of external libraries. There are several JavaScript libraries available, such as Prism and Highlight.js. For our editor, we'll use Prism since it's easy to use and supports a wide range of programming languages.
  • We're Not a CDN – Highlight.js
    1 project | news.ycombinator.com | 18 Dec 2023
    They do actually document the recommended path in their GitHub docs: https://github.com/highlightjs/highlight.js#GettingTheLibrar...
  • Show HN: A template for Markdown-based sites (no static site generator required)
    3 projects | news.ycombinator.com | 3 Dec 2023
    The templates grabs Markdown file data with XMLHttpRequest and converts it to HTML with https://showdownjs.com/ . Classless styles are done with https://picocss.com/ and code block syntax highlighting is done with https://highlightjs.org/ .

    GitHub repo: https://github.com/dandalpiaz/markdown-pages

  • Is copying from open source projects stealing?
    3 projects | dev.to | 31 Oct 2023
    My search for a third-party syntax highlighter brought me to highlight.js. ctil converts text (.txt) and Markdown (.md) to generated HTML (.html) files, so I want the generated HTML files to support syntax highlighting. highlight.js can be used as HTML Tags by using a Content Delivery Network, CDN, so I was able to add highlight.js by adding the following lines to the generated HTML files:
  • building a basic markdown editor: unified, trees and data
    2 projects | dev.to | 2 Oct 2023
    The real magic is what happens once you generate the syntax trees; at that point, you can modify them with the existing plugins (or make you own, if you really want to). For instance, I use a plugin to add specific css classes to certain elements so they integrate better with the visual design of the website another to add code highlighting with highlight.js and some others for generating a js object from the frontmatter of a Markdown file and to add support for Github flavored Markdown. I could do a lot more with these, like add support for videos, embeds and more, but for now this is enough for a simple preview.
  • HTML5 - Text markup elements
    1 project | dev.to | 14 Sep 2023
    pre is for a block of preformatted text, so spaces are preserved, and the font can be monospaced. Another element is code for programming codes. Notice that code doesn't offer code highlighting; for this, use JavaScript + CSS code, like Highlight.js.
  • Scraping Google Maps
    2 projects | /r/node | 11 Jun 2023

What are some alternatives?

When comparing mh-ssg and Highlight.js you can also consider the following projects:

yargs - yargs the modern, pirate-themed successor to optimist.

PrismJS - Lightweight, robust, elegant syntax highlighting.

Docusaurus - Easy to maintain open source documentation websites.

Rouge - A pure Ruby code highlighter that is compatible with Pygments

mini-ssg - MINI - A minimalist static site generator written in JS.

Pygments

Javascript Left-Right Parser - Parser for JavaScript

tiptap - The headless rich text editor framework for web artisans.

quill - Quill is a modern WYSIWYG editor built for compatibility and extensibility.

kotlin-latex-listing - A syntax highlighting template for the Kotlin language in LaTeX listings.

shiki - A beautiful yet powerful syntax highlighter

linguist - Language Savant. If your repository's language is being reported incorrectly, send us a pull request!