Skip to content

Commit 38276d7

Browse files
author
Elvir Brkic
committed
Working fonts.
1 parent 613193a commit 38276d7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

NoteHighlightAddin/AddIn.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ public XDocument InsertHighLightCode(string htmlContent, string[] position)
260260
var arrayLine = htmlContent.Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
261261
foreach (var item in arrayLine)
262262
{
263-
string s = item.Replace(@"style=""", string.Format(@"style=""font-family:{0}; ", GenerateHighlightContent.GenerateHighLight.Config.OutputArguments["Font"].Value));
263+
//string s = item.Replace(@"style=""", string.Format(@"style=""font-family:{0}; ", GenerateHighlightContent.GenerateHighLight.Config.OutputArguments["Font"].Value));
264+
string s = string.Format(@"<body style=""font-family:{0}"">", GenerateHighlightContent.GenerateHighLight.Config.OutputArguments["Font"].Value) + item + "</body>";
264265
children.Add(new XElement(ns + "OE",
265266
new XElement(ns + "T",
266267
new XCData(s))));

NoteHighlightAddin/App.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<add Name="LineNumbers" Key="-l" Value="" Option="true"/>
3535
<add Name="Style" Key="-s" Value="{highLightStyle}"/>
3636
<add Name="LineNumberLength" Key="-j" Value="5"/>
37-
<add Name="Font" Key="-k" Value="Consolas"/>
37+
<add Name="Font" Key="-k" Value="Courier New"/>
3838
<add Name="OutFormat" Key="-O" Value="html"/>
3939
</OutputArguments>
4040
</HighLightSection>

0 commit comments

Comments
 (0)