From 823c16f87c282daf728434db26d36d9e88769ed0 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Sat, 26 Oct 2024 15:58:18 -0700 Subject: [PATCH] feat: Export-4bitCSS - HighlightJS support ( Fixes #102, Fixes #103, Fixes #105 ) Fixing iterator --- Commands/Export-4BitCSS.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Commands/Export-4BitCSS.ps1 b/Commands/Export-4BitCSS.ps1 index 7e9afaa18..2b7ae2dc0 100644 --- a/Commands/Export-4BitCSS.ps1 +++ b/Commands/Export-4BitCSS.ps1 @@ -553,9 +553,9 @@ foreach ($subproperty in 'Formatting', 'Progress') { } if ((-not $NoHighlight) -and $HighlightStyle.Count) { - +"/* highlight.js styles */" foreach ($keyValuePair in $HighlightStyle) { - foreach ($key in $HighlightStyle.Key) { + foreach ($key in $HighlightStyle.Keys) { $cssProperties = $HighlightStyle[$key] $cssProperties = if ($cssProperties -is [Collections.IDictionary]) { foreach ($cssKeyValue in $cssProperties.GetEnumerator()) {