All Projects β†’ d4l3k β†’ go-highlight

d4l3k / go-highlight

Licence: MIT license
A Go (Golang) code syntax highlighting library.

Programming Languages

go
31211 projects - #10 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to go-highlight

Geshi 1.0
Original version of Generic Syntax Highlighter for PHP
Stars: ✭ 149 (+645%)
Mutual labels:  syntax-highlighting, highlight
see-cli
A colorful 🌈 cat - syntax highlight print CLI
Stars: ✭ 24 (+20%)
Mutual labels:  syntax-highlighting, highlight
enhanced-slack
🌴 PoC Slack enhancer/injector
Stars: ✭ 48 (+140%)
Mutual labels:  syntax-highlighting, highlight
Lowlight
Virtual syntax highlighting for virtual DOMs and non-HTML things
Stars: ✭ 310 (+1450%)
Mutual labels:  syntax-highlighting, highlight
Highlightr
iOS & OSX Syntax Highlighter.
Stars: ✭ 1,116 (+5480%)
Mutual labels:  syntax-highlighting, highlight
Yii2 Quill
Yii 2 implementation of Quill, modern WYSIWYG editor
Stars: ✭ 52 (+160%)
Mutual labels:  syntax-highlighting, highlight
Refractor
Lightweight, robust, elegant virtual syntax highlighting using Prism
Stars: ✭ 291 (+1355%)
Mutual labels:  syntax-highlighting, highlight
Alfred Hl
πŸ”† Syntax highlight code in the clipboard
Stars: ✭ 80 (+300%)
Mutual labels:  syntax-highlighting, highlight
geshi-1.1
Next generation of Generic Syntax Highlighter for PHP
Stars: ✭ 70 (+250%)
Mutual labels:  syntax-highlighting, highlight
code editor
A code editor (dart, js, html, ...) for Flutter with syntax highlighting and custom theme.
Stars: ✭ 48 (+140%)
Mutual labels:  syntax-highlighting
Visual-Studio-For-Mac-Dark-Syntax-HoneyBees
HoneyBees is a colorful, but easy-to-read, dark syntax highlighting theme for Microsoft Visual Studio for Mac & Xamarin Studio. It supports C#, XAML, XML, HTML, and CSS.
Stars: ✭ 12 (-40%)
Mutual labels:  syntax-highlighting
sora-editor
A cool code editor library on Android with syntax-highlighting and auto-completion. (aka CodeEditor)
Stars: ✭ 580 (+2800%)
Mutual labels:  syntax-highlighting
vscode-liquid
πŸ’§Liquid language support for VS Code
Stars: ✭ 137 (+585%)
Mutual labels:  syntax-highlighting
PlantUml-Language-Service
PlantUml Language Service extension for Visual Studio 2017 and 2019
Stars: ✭ 24 (+20%)
Mutual labels:  syntax-highlighting
sb-dynlex
Configurable lexer for PHP featuring a fluid API.
Stars: ✭ 27 (+35%)
Mutual labels:  syntax-highlighting
SublimeText-GameMaker-Plugin
GML Snippets & Syntax Highlighting for SublimeText 2
Stars: ✭ 20 (+0%)
Mutual labels:  syntax-highlighting
vscode-LaTeX-support
LaTeX language support for Visual Studio Code
Stars: ✭ 17 (-15%)
Mutual labels:  syntax-highlighting
Highlightr-Plugin
A minimal and aesthetically pleasing highlighting menu that makes color-coded highlighting much easier 🎨.
Stars: ✭ 321 (+1505%)
Mutual labels:  highlight
iterm-oh-my-zsh-powerlevel10k
Improved Terminal Experience with Oh My Zsh, iTerm2, PowerLevel10K
Stars: ✭ 24 (+20%)
Mutual labels:  syntax-highlighting
ZenScript
Visual Studio Code extension/Language Server for ZenScript, includes highlight, code snippet and language server(WIP). Works with πŸ‘‡
Stars: ✭ 29 (+45%)
Mutual labels:  syntax-highlighting

go-highlight GoDoc Build Status

A Go (Golang) code syntax highlighting library. It uses automatically converted highlight.js language definitions.

Usage

package main

import "github.com/d4l3k/go-highlight"

func main() {
  highlight.Highlight("go", `
    package main

    import "fmt"

    func main() {
      fmt.Println("Duck!")
    }
  `)
  /*
    <keyword>package</keyword> main

    <keyword>import</keyword> <string>"fmt"</string>

    <keyword>func</keyword> main() {
      fmt.Println(<string>"Duck!"</string>)
    }
  */
}

Copyright

The code written by Tristan Rice is licensed under the MIT license.

The language definitions are ported from highlight.js which is licensed under the BSD licence.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].