All Projects â†’ xyproto â†’ splash

xyproto / splash

Licence: MIT license
🌊 Highlight source code embedded in HTML with a splash of color

Programming Languages

go
31211 projects - #10 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to splash

KodeEditor
A simple code editor with syntax highlighting and pinch to zoom
Stars: ✭ 60 (+215.79%)
Mutual labels:  syntax-highlighting, syntax, highlighting
Nord Sublime Text
An arctic, north-bluish clean and elegant Sublime Text theme.
Stars: ✭ 109 (+473.68%)
Mutual labels:  syntax-highlighting, syntax, highlighting
rdocsyntax
Syntax highlighting for R HTML documentation
Stars: ✭ 20 (+5.26%)
Mutual labels:  syntax-highlighting, highlighting
colocat
Fegeya Colocat, Colorized 'cat' implementation. Written in C++17.
Stars: ✭ 14 (-26.32%)
Mutual labels:  syntax, highlighting
nord-atom-syntax
An arctic, north-bluish clean and elegant Atom syntax theme.
Stars: ✭ 72 (+278.95%)
Mutual labels:  syntax-highlighting, syntax
Syntax Highlighter
Syntax Highlighter extension for Visual Studio Code (VSCode). Based on Tree-sitter.
Stars: ✭ 88 (+363.16%)
Mutual labels:  syntax-highlighting, syntax
Zsh Syntax Highlighting Filetypes
zsh syntax highlighting with dircolors in realtime
Stars: ✭ 130 (+584.21%)
Mutual labels:  syntax-highlighting, highlighting
syntax highlighter
Syntax Highlighter for Dart/Flutter Code
Stars: ✭ 28 (+47.37%)
Mutual labels:  syntax-highlighting, syntax
Nord Visual Studio Code
An arctic, north-bluish clean and elegant Visual Studio Code theme.
Stars: ✭ 749 (+3842.11%)
Mutual labels:  syntax-highlighting, syntax
vscode-liquid
💧Liquid language support for VS Code
Stars: ✭ 137 (+621.05%)
Mutual labels:  syntax-highlighting, syntax
sublime-coconut
Coconut syntax highlighting for Sublime Text and VSCode.
Stars: ✭ 18 (-5.26%)
Mutual labels:  syntax-highlighting, highlighting
CodeView
Android Library to make it easy to create an Code editor or IDE that support any languages and themes, with auto complete, auto indenting, snippets and more features
Stars: ✭ 254 (+1236.84%)
Mutual labels:  syntax-highlighting, highlighting
Catage
Node package and CLI tool to convert code into an image with syntax highlighting
Stars: ✭ 44 (+131.58%)
Mutual labels:  syntax-highlighting, syntax
kirby-highlight
Themeable server-side syntax highlighting for Kirby
Stars: ✭ 14 (-26.32%)
Mutual labels:  syntax-highlighting, highlighting
6502 Npp Syntax
Notepad++ Syntax Highlighting for 6502 Assembly (and NESASM)
Stars: ✭ 17 (-10.53%)
Mutual labels:  syntax-highlighting, highlighting
nord-notepadplusplus
An arctic, north-bluish clean and elegant Notepad++ theme.
Stars: ✭ 112 (+489.47%)
Mutual labels:  syntax-highlighting, syntax
Sublime Markdown Extended
Top 100 Sublime Text plugin! Markdown syntax highlighter for Sublime Text, with extended support for GFM fenced code blocks, with language-specific syntax highlighting. YAML Front Matter. Works with ST2/ST3. Goes great with Assemble.
Stars: ✭ 645 (+3294.74%)
Mutual labels:  syntax-highlighting, syntax
Codeview Android
Display code with syntax highlighting ✨ in native way.
Stars: ✭ 748 (+3836.84%)
Mutual labels:  syntax-highlighting, highlighting
language-rainmeter
Syntax highlighting for Rainmeter files in Atom.
Stars: ✭ 19 (+0%)
Mutual labels:  syntax-highlighting, syntax
6502-npp-syntax
Notepad++ Syntax Highlighting for 6502 Assembly (and NESASM)
Stars: ✭ 21 (+10.53%)
Mutual labels:  syntax-highlighting, highlighting

Splash

Highlight code embedded in HTML using the chroma package.

The generated output is tested by visual inspection in Chromium, Midori and Netsurf.

Example usage

package main

import (
    "github.com/xyproto/splash"
    "io/ioutil"
)

func main() {
    // Read "input.html"
    inputHTML, err := ioutil.ReadFile("input.html")
    if err != nil {
        panic(err)
    }

    // Highlight the source code in the HTML document with the monokai style
    outputHTML, err := splash.Splash(inputHTML, "monokai")
    if err != nil {
        panic(err)
    }

    // Write the highlighted HTML to "output.html"
    if err := ioutil.WriteFile("output.html", outputHTML, 0644); err != nil {
        panic(err)
    }
}

Available syntax highlighting styles

See the Style Gallery for a full overview of available styles and how they may appear.

General information

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