Skip to content
ConsoleMonster
Class

CodeFrameSource

ConsoleMonster.Export

Namespace
ConsoleMonster.Export
Assembly
ConsoleMonster
Modifiers
sealed

The original source embedded in a ConsoleMonster code SVG.

Inheritance

  • object
  • CodeFrameSource

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Methods

public static CodeFrameSource ReadSvg(TextReader input) #

Reads the source metadata of an SVG code frame without rendering the SVG or evaluating the source.

Parameters

input System.IO.TextReader required
A reader positioned at the start of the SVG document.

Returns

CodeFrameSource The source and its original line range.

Exceptions

  • InvalidDataException – The document has no valid ConsoleMonster code source.

Properties

public string Source { get; } #

The source text with its original indentation and line endings.

public string Language { get; } #

The syntax highlighter name, or text.

public int FirstLine { get; } #

The first physical line in the original source.

public int LastLine { get; } #

The last physical line in the original source, inclusive.