We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f838248 commit ecb7eb8Copy full SHA for ecb7eb8
src/CodeSnip/Views/HighlightingEditorView/HighlightingEditorViewModel.cs
@@ -231,6 +231,15 @@ private void ApplyLivePreview()
231
if (color.FontStyle != FontStyles.Normal)
232
colorElem.SetAttributeValue("fontStyle", color.FontStyle.ToString().ToLowerInvariant());
233
234
+ if (color.Underline)
235
+ colorElem.SetAttributeValue("underline", "true");
236
+
237
+ if (color.Strikethrough)
238
+ colorElem.SetAttributeValue("strikethrough", "true");
239
240
+ if (color.FontSize.HasValue)
241
+ colorElem.SetAttributeValue("fontSize", color.FontSize.Value.ToString());
242
243
doc.Root?.AddFirst(colorElem);
244
}
245
0 commit comments