Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit fe37b3b

Browse files
julodnikdgrunwald
authored andcommitted
Some small fixes
1 parent a81b6c2 commit fe37b3b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Highlighting/HighlightingColorizer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ internal static void ApplyColorToElement(VisualLineElement element, Highlighting
256256
if (b != null)
257257
element.BackgroundBrush = b;
258258
}
259-
if (color.FontStyle != null || color.FontWeight != null || color.Underline != null) {
259+
if (color.FontStyle != null || color.FontWeight != null) {
260260
Typeface tf = element.TextRunProperties.Typeface;
261261
element.TextRunProperties.SetTypeface(new Typeface(
262262
tf.FontFamily,

src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Highlighting/Resources/ModeV2.xsd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<xsd:simpleType name="FontStyle">
2525
<xsd:restriction base="xsd:string">
2626
<xsd:enumeration value="italic"/>
27+
<xsd:enumeration value="underlined"/>
2728
<xsd:enumeration value="normal"/>
2829
<xsd:enumeration value="oblique"/>
2930
</xsd:restriction>
@@ -35,6 +36,7 @@
3536
<xsd:attribute name="background" type="xsd:string" use="optional" />
3637
<xsd:attribute name="fontWeight" type="FontWeight" use="optional" />
3738
<xsd:attribute name="fontStyle" type="FontStyle" use="optional" />
39+
<xsd:attribute name="underline" type="xsd:boolean" use="optional" />
3840
<xsd:anyAttribute namespace="##other" processContents="lax" />
3941
</xsd:attributeGroup>
4042

0 commit comments

Comments
 (0)