html

package
v0.0.0-...-11c9596 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package html is an output filter to generate an html chunk wrapped in a div to be highlighted by CSS. A sample output is

<div class="highlight"><pre><span class="name ntag">&lt;root&gt;</span>
  <span class="name ntag">&lt;child</span> <span class="name ntag">/&gt;</span>
<span class="name ntag">&lt;/root&gt;</span>
</pre></div>

Which requires a suitable CSS file.

Note that this package does not export any symbols, as it actively registers at the process package with

processor.RegisterOutputFilter("html", Render)

in the init function. Render

(f filter) Render(t processor.Tokenizer) string

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(in chan processor.Token, out chan string)

Gets called when the user requests HTML output

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL