Documentation Language: Swift

Structure

SwiftSyntaxHighlighter

A simple Swift syntax highlighter for static HTML output.

struct SwiftSyntaxHighlighter

Overview

This provides basic syntax highlighting without requiring JavaScript. It handles common Swift constructs like keywords, strings, numbers, and comments.

Topics

Initializers

?
init()

Creates a new syntax highlighter.

Instance Methods

F
highlight(_:)

Highlights Swift code and returns HTML with syntax highlighting spans.

Relationships

Conforms To