Class HighlightedSource
A block that renders a highlighted region of source code.
public sealed class HighlightedSource : Block
- Inheritance
-
HighlightedSource
- Inherited Members
Constructors
HighlightedSource(SourceRegion)
Creates a highlighted source block that focuses on a single region.
public HighlightedSource(SourceRegion focusRegion)
Parameters
focusRegionSourceRegionThe source region to focus on and highlight.
HighlightedSource(SourceRegion, SourceRegion)
Creates a highlighted source block.
public HighlightedSource(SourceRegion highlightedRegion, SourceRegion focusRegion)
Parameters
highlightedRegionSourceRegionThe source region to highlight.
focusRegionSourceRegionThe source region to focus on.
Properties
FocusRegion
Gets the source region to focus on.
public SourceRegion FocusRegion { get; }
Property Value
HighlightedRegion
Gets the source region to highlight.
public SourceRegion HighlightedRegion { get; }
Property Value
HighlightedSpan
Gets the bounding span of the highlighted region.
public SourceSpan HighlightedSpan { get; }
Property Value
Methods
Lower()
Lowers this highlighted source block to simpler markup.
public override Block Lower()
Returns
- Block
The lowered block markup.