highlight

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package highlight applies syntax highlighting to HTTP body content.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Highlight

func Highlight(body []byte, contentType string, darkBg bool, prettyJSON bool) string

Highlight applies syntax highlighting to body based on contentType. Returns ANSI-colored string. Falls back to plain text for unknown types.

Types

This section is empty.

Jump to

Keyboard shortcuts

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