syntect - Rust library for syntax highlighting using Sublime Text syntax definitions.

  •        14

syntect is a syntax highlighting library for Rust that uses Sublime Text syntax definitions. It aims to be a good solution for any Rust project that needs syntax highlighting, including deep integration with text editors written in Rust. It's used in production by at least two companies, and by many open source projects.If you are writing a text editor (or something else needing highlighting) in Rust and this library doesn't fit your needs, I consider that a bug and you should file an issue or email me.

https://docs.rs/syntect
https://github.com/trishume/syntect

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.

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.

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.

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

  •    Shell

Writing docs in Markdown is common today, but Notepad++ doesn't provide syntax highlighting for Markdown by default. That's why this repo exists. This repo markdown-plus-plus is a collection of User Defined Language XML files for Markdown syntax highlighting in Notepad++. You download a file that matches your favorite theme, import in Notepad++, and then you are good to go.


fast-syntax-highlighting - Syntax-highlighting for Zshell – fine granularity, number of features, 40 work hours themes (short name F-Sy-H)

  •    Shell

New: You can request a feature when donating, even fancy or advanced ones get implemented this way. There are reports about what is being done with the money received. Feature rich syntax highlighting for Zsh.

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.

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.

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.

sublime-monokai-extended - Extends Monokai from Soda with additional syntax highlighting for Markdown, LESS, HTML, Handlebars and more

  •    

Open a Markdown file in Sublime Text and make sure that syntax highlighting is set to Markdown Extended (not Markdown) View -> Syntax -> Markdown Extended. Then go to Preferences -> Color Scheme -> Monokai Extended and pick a theme.

Highlight.js - Javascript Syntax Highlighter

  •    Javascript

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.

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

AsmHighlighter - x86 ASM Syntax Highlighting AddIn for Visual Studio

  •    

AsmHighlighter is an extension to Visual Studio 2008 that provides syntax highlighting for x86 ASM language. MASM and NASM syntaxes are supported.

ColorCode - Syntax Highlighting/Colorization for .NET

  •    

ColorCode is a library for colorizing source code (also known as syntax highlighting).

SharePoint 2010 Syntax Highlighting

  •    

This project allows users to apply syntax highlighting to code snippits via the SharePoint 2010 Ribbon UI.

WPF SyntaxHighlightBox

  •    WPF

SyntaxHighlightBox is a WPF project to build a simple and fast textbox with support for syntax-highlighting. Syntaxes are easily described in XML files. Syntax highlighting is done by block increment (just like the Qt TextEdit with QSyntaxHighlighter).

pgcli - Postgres CLI with autocompletion and syntax highlighting

  •    Python

This is a postgres client that does auto-completion and syntax highlighting. The pgcli is written using python prompt toolkit. Its feature include Auto-completion, Syntax highlighting, Multi line support, Pagination etc.





We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.