Highlight.js - Javascript Syntax Highlighter

  •        93

Highlight.js is a syntax highlighter written in JavaScript. It works in the browser as well as on the server. It works with pretty much any markup, doesn’t depend on any framework and has automatic language detection. It supports 176 languages and 79 styles, automatic language detection, multi-language code highlighting and lot more.

https://highlightjs.org/
https://github.com/isagalaev/highlight.js

Tags
Implementation
License
Platform

   




Related Projects

copy-syntax-highlight-osx - Copy Syntax Highlight for OS X is an OS X service which copies the selected text to the clipboard, with proper syntax highlighting for the given language

  •    

Copy Syntax Highlight for OS X is an OS X service which copies the selected text to the clipboard, with proper syntax highlighting for the given language. The intended primary use case is to Paste the copied syntax highlighted-text into productivity applications such as Word, Keynote, and Photoshop, while keeping the code highlighting intact. Such highlighting can then be used in documents for publication and presentations for more spark, so to speak.

SyntaxHighlighter - Fully functional self-contained code syntax highlighter developed in JavaScript

  •    Javascript

SyntaxHighlighter is THE client side highlighter for the web and web-apps! It's been around since 2004 and it's used virtually everywhere to seamlessly highlight code for presentation purposes. SyntaxHighlighter is currently used and has been used in the past by Microsoft, Apache, Mozilla, Yahoo, Wordpress, Bug Labs, Freshbooks and many other companies and blogs.

react-syntax-highlighter - syntax highlighting component for react with prismjs or highlightjs ast using inline styles

  •    Javascript

Check out a small demo here and see the component in action highlighting the generated test code here. There are other syntax highlighters for React out there so why use this one? The biggest reason is that all the others rely on triggering calls in componentDidMount and componentDidUpdate to highlight the code block and then insert it in the render function using dangerouslySetInnerHTML or just manually altering the DOM with native javascript. This utilizes a syntax tree to dynamically build the virtual dom which allows for updating only the changing DOM instead of completely overwriting it on any change, and because of this it is also using more idiomatic React and allows the use of pure function components brought into React as of 0.14.

highlight - Rich featured syntax highlighter for Keynote slides.

  •    Swift

Highlight is a rich-featured syntax highlighter for Keynote slides that allows you to get syntax-highlighted code in RTF with one click. Its main feature is based on highlight.js, which means 176 langauges and 79 styles are available. Check out the demo to see what you get with the application. Do you like to customize the results? Just open the Preferences dialog. You will see how.

Highlightr - iOS & OSX Syntax Highlighter.

  •    Swift

Highlightr is an iOS & macOS syntax highlighter built with Swift. It uses highlight.js as it core, supports 176 languages and comes with 79 styles. Takes your lame string with code and returns a NSAttributtedString with proper syntax highlighting.


Prism - Lightweight, robust, elegant syntax highlighting

  •    Javascript

Prism is a lightweight, robust, elegant syntax highlighting library. It's a spin-off project from Dabblet. The core is 2KB minified & gzipped. Languages add 0.3-0.5KB each, themes are around 1KB. Define new languages or extend existing ones. Add new features thanks to Prism’s plugin architecture. It supports parallelism with Web Workers, if available. All styling is done through CSS, with sensible class names like .comment, .string, .property etc

react-highlight - React component for syntax highlighting

  •    Javascript

The styles will most likely be in node_modules/highlight.js/styles folder. Code snippet that requires syntax highlighting should be passed as children to Highlight component in string format. Language name of code snippet should be specified as className.

vim-markdown - Markdown for Vim: a complete environment to create Markdown files with a syntax highlight that doesn't suck!

  •    Vim

I wanted strong support for the Markdown flavor implemented by GitHub. I wanted syntax highlighting that would mirror the result I would find later on GitHub. I wanted syntax highlighting that would not break easily. I wanted syntax highlighting that I could rely on (aka rapid feedback). I wanted something more than mere syntax highlighting. The Markdown Syntax, unfortunately, is so loosely defined that there are flavors of Markdown that are subtly incompatible with each other. The Markdown supported by GitHub is one of them.

Highlight Syntax Editor

  •    CSharp

Syntax Editor is text editor for displaying text content that need extra formatting (text highlighting). It is completely written in C#. With this text editor, you can make use of one of the predefined highlight styles, like C# or Java, or create your own custom syntax. ...

vim-cpp-enhanced-highlight - Additional Vim syntax highlighting for C++ (including C++11/14)

  •    Vim

This file contains additional syntax highlighting that I use for C++11/14/17 development in Vim. Compared to the standard syntax highlighting for C++ it adds highlighting of (user defined) functions and the containers and types in the standard library / boost. which is a faster implementation but has some corner cases where it doesn't work.

SharePoint 2013 Syntax Highlighting

  •    

This project allows users to apply syntax highlighting to code snippits via the SharePoint 2013 Ribbon UI, with no server side code.

vue-syntax-highlight - Sublime Text syntax highlighting for single-file Vue components

  •    

Sublime Text Syntax highlighting for single-file Vue.js components (enabled by vue-loader or vueify).NOTE: You still need to install corresponding packages for pre-processors (e.g. Jade, SASS, CoffeeScript) to get proper syntax highlighting for them.

NShader - HLSL - GLSL - CG - Shader Syntax Highlighter AddIn for Visual Studio

  •    

NShader is an extension to Visual Studio 2008/2010/2012 that provides syntax highlighting for various shader languages including HLSL - GLSL - CG.

WLW Wordpress.com Syntax Highlighter Plugin

  •    

A Windows Live Writer plugin for Wordpress.com Syntax Highlighter that allows you to enter in code, select a language, and outputs the correct syntax to highlight your code. With this plugin you can write code for your blog and have it auto highlight

Pygments - Syntax Highlighter in Python

  •    Python

Pygments is a generic syntax highlighter for general use in all kinds of software such as forum systems, wikis or other applications that need to prettify source code. It supports all common programming languages. It will take source code (or other markup) in a supported language and output a processed version (in different formats) containing syntax highlighting markup. It suports a number of output formats like HTML, RTF, LaTeX and ANSI sequences (console output).

MagicPython - Cutting edge Python syntax highlighter for Sublime Text, Atom and Visual Studio Code

  •    Javascript

This is a package with preferences and syntax highlighter for cutting edge Python 3, although Python 2 is well supported, too. The syntax is compatible with Sublime Text, Atom and Visual Studio Code. It is meant to be a drop-in replacement for the default Python package. We are proud to say that MagicPython is used by GitHub to highlight Python.

JUSH - JavaScript Syntax Highlighter

  •    Javascript

JUSH is a syntax highlighting component written in JavaScript. It highlights HTML, CSS, JS, PHP and SQL code embedded into each other. Beside syntax highlighting, it provides links to the documentation for all supported languages.

Splash - A fast, lightweight and flexible Swift syntax highlighter for blogs, tools and fun!

  •    Swift

Welcome to Splash - a fast, lightweight and flexible Swift syntax highlighter. It can be used to generate code sample HTML for a blog post, to turn a string of Swift code into a fully syntax highlighted image, or to build custom developer tools. Splash can be used either as a library in your own Swift Package Manager-powered tool or script, or by using one of the three built-in command line tools that act as frontends for the Splash library.

Rainbow - Code Syntax Highlighting Library in Javascript

  •    JavaScript

Rainbow is a code syntax highlighting library written in JavaScript. It was designed to be lightweight (1.4kb), easy to use, and extendable. It is completely themable via CSS. If you have a language specific pattern that you want highlighted, but it does not exist in the language syntax rules you can add a rule on your page.