CodeFormatterCssClass Property

Gets or sets the CSS class name to use on the <pre> element in the output HTML.

Definition

Namespace: Ookii.FormatC
Assembly: Ookii.FormatC (in Ookii.FormatC.dll) Version: 2.3.2+a0abe9e363271833c90424d1444b43a67fa5858f
C#
public string? CssClass { get; set; }

Property Value

String
The CSS class name to use on the <pre> element. The default value is the value of DefaultCssClass.

Remarks

If you change this value, you must also modify your CSS stylesheet accordingly.

If LineNumberMode is Table, this class is applied to the encapsulating <div> element instead.

If you set this value to , the element will not have a CSS class.

This property is ignored if IncludePreElement is .

See Also