JavaScript syntax-highlighting

Open-source JavaScript projects categorized as syntax-highlighting

Top 23 JavaScript syntax-highlighting Projects

  • Highlight.js

    JavaScript syntax highlighter with language auto-detection and zero dependencies.

  • Project mention: Vala Programming Language | news.ycombinator.com | 2024-04-08

    > 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

  • remarkable

    Markdown parser, done right. Commonmark support, extensions, syntax plugins, high speed - all in one. Gulp and metalsmith plugins available. Used by Facebook, Docusaurus and many others! Use https://github.com/breakdance/breakdance for HTML-to-markdown conversion. Use https://github.com/jonschlinkert/markdown-toc to generate a table of contents.

  • 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 logo
  • markdown-plus-plus

    Markdown syntax highlighting for Notepad++, by customized UDL file (user defined language)

  • visual-studio-code

    An arctic, north-bluish clean and elegant Visual Studio Code theme.

  • vscode-styled-components

    Syntax highlighting for styled-components

  • code-blocks

    Syntax highlighting for Google Docs

  • lowlight

    Virtual syntax highlighting for virtual DOMs and non-HTML things

  • 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.

    InfluxDB logo
  • refractor

    Lightweight, robust, elegant virtual syntax highlighting using Prism

  • sugar-high

    ✏️ Super lightweight JSX syntax highlighter, around 1KB after minified and gzipped

  • gatsby-remark-vscode

    Gatsby plugin to provide VS Code’s syntax highlighting to Markdown code fences

  • rehype-highlight

    plugin to highlight code blocks

  • Syntax.js

    💻 A lightweight, and easy-to-use, JavaScript library for code syntax highlighting!

  • Project mention: Syntax.js JavaScript Syntax Highlighter | news.ycombinator.com | 2023-10-31
  • babel-plugin-prismjs

    A babel plugin to use PrismJS with standard bundlers.

  • Project mention: Five Syntax Highlighting Plugins for NextJS that aren't Terrible 🎨 | dev.to | 2024-03-14

    To make it easy to configure your Prism instance with only the languages and plugins you need, use the babel plugin, babel-plugin-prismjs. This will allow you to load the minimum number of languages and plugins to satisfy your needs. See that plugin's documentation for configuration details.

  • notepadplusplus

    An arctic, north-bluish clean and elegant Notepad++ theme.

  • tree-sitter-sql

    SQL syntax highlighting for tree-sitter (by m-novikov)

  • Project mention: Emacs and Java Development: Corfu + Cape + LSP-Mode + Treesit | /r/emacs | 2023-05-19

    (use-package treesit :ensure nil :custom ;; Some stuff taken from here: https://robbmann.io/posts/emacs-treesit-auto/ (treesit-extra-load-path '("/usr/lib64/")) (treesit-language-source-alist '((bash . ("https://github.com/tree-sitter/tree-sitter-bash")) (c . ("https://github.com/tree-sitter/tree-sitter-c")) (c++ . ("https://github.com/tree-sitter/tree-sitter-cpp")) (csharp . ("https://github.com/tree-sitter/tree-sitter-c-sharp")) (css . ("https://github.com/tree-sitter/tree-sitter-css")) (elixir ("https://github.com/elixir-lang/tree-sitter-elixir")) (html . ("https://github.com/tree-sitter/tree-sitter-html")) (java . ("https://github.com/tree-sitter/tree-sitter-java")) (javascript . ("https://github.com/tree-sitter/tree-sitter-javascript")) (json . ("https://github.com/tree-sitter/tree-sitter-json")) (lua . ("https://github.com/Azganoth/tree-sitter-lua")) (makefile . ("https://github.com/alemuller/tree-sitter-make")) (org . ("https://github.com/milisims/tree-sitter-org")) (python . ("https://github.com/tree-sitter/tree-sitter-python")) (tsx . ("https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")) (typescript . ("https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")) (ruby . ("https://github.com/tree-sitter/tree-sitter-ruby")) (rust . ("https://github.com/tree-sitter/tree-sitter-rust")) (sql . ("https://github.com/m-novikov/tree-sitter-sql")) (toml . ("https://github.com/tree-sitter/tree-sitter-toml")) (yaml . ("https://github.com/ikatyang/tree-sitter-yaml")))) (major-mode-remap-alist '((c-mode . c-ts-mode) (c++-mode . c++-ts-mode) (csharp-mode . csharp-ts-mode) (css-mode . css-ts-mode) (html-mode . html-ts-mode) (java-mode . java-ts-mode) (js-mode . js-ts-mode) (json-mode . json-ts-mode) (makefile-mode . makefile-ts-mode) ;; (org-mode . org-ts-mode) ;; not mature yet (python-mode . python-ts-mode) (typescript-mode . typescript-ts-mode) (ruby-mode . ruby-ts-mode) (rust-mode . rust-ts-mode) (toml-mode . toml-ts-mode) (yaml-mode . yaml-ts-mode))) (treesit-auto-fallback-alist '((toml-ts-mode . conf-toml-mode) (typescript-ts-mode . nil) (tsx-ts-mode . nil))) (treesit-font-lock-settings t) (treesit-simple-indent t) (treesit-defun-type-regexp t)) (use-package treesit-auto :demand t :config (setq treesit-auto-install t) (global-treesit-auto-mode))

  • theme-bluloco-light

    A fancy and sophisticated light designer color scheme.

  • Aris

    Aris - A fast and powerful tool to write HTML in JS easily. Includes syntax highlighting, templates, SVG, CSS autofixing, debugger support and more...

  • lighter

    The syntax highlighter used by Code Hike. (by code-hike)

  • json-formatter

    A Browser Extension to format JSON in the browser automatically. Available with 60+ Themes, Syntax Highlighting, automatically linkifies links and more. (by arnav-kr)

  • Ace-Editor-Web-Component

    A web-component to add code editors to your web page powered via Ace Editor

  • markcat

    :eyeglasses: Markdown files terminal viewer.

  • vscode-motoko

    Motoko language support for VS Code.

  • adblock-filter-analyzer

    AdBlock Filter Syntax code highlighter and partial validator. Colorizes and explains the syntax. Good for learning.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-04-08.

JavaScript syntax-highlighting related posts

Index

What are some of the best open-source syntax-highlighting projects in JavaScript? This list will help you:

Project Stars
1 Highlight.js 23,026
2 remarkable 5,665
3 markdown-plus-plus 1,461
4 visual-studio-code 1,069
5 vscode-styled-components 910
6 code-blocks 689
7 lowlight 679
8 refractor 666
9 sugar-high 469
10 gatsby-remark-vscode 294
11 rehype-highlight 232
12 Syntax.js 191
13 babel-plugin-prismjs 154
14 notepadplusplus 130
15 tree-sitter-sql 102
16 theme-bluloco-light 90
17 Aris 87
18 lighter 73
19 json-formatter 61
20 Ace-Editor-Web-Component 43
21 markcat 41
22 vscode-motoko 41
23 adblock-filter-analyzer 14
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com