Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/speedata/decorate

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/speedata/decorate

  • v0.0.0-20140819225746-11c959617936
  • Source
  • Go
  • Socket score

Version published
Created
Source

decorate

Go syntax highlighting framework

Installation

go get github.com/speedata/decorate

How to use decorate?

See the application gohigh for an example: https://github.com/speedata/gohigh

decorate.HighlightFile(inputfile, inputfilter, outputfilter)

where inputfile is the filename (+ path) to the input file, inputfilter the name of the input filter (currently only text and xml are supported) and outputfilter is currently either html or text.

How to contribute?

See the file inputfilter/text/text.go for a sample input filter (a language lexer) and outputfilter/text/text.go for a dummy output filter. Just follow the code there and add an import statement in decorate.go to activate the filter.

Other:

Status: pre alpha
Supported/maintained: yes
Contribution welcome: yes (pull requests, issues)
Main page: https://github.com/speedata/decorate
License: MIT
Contact: gundlach@speedata.de

FAQs

Package last updated on 19 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc