Skip to content

Commit 22ff589

Browse files
committed
Added new config parameters for Asian font line spacing
1 parent b12b4b5 commit 22ff589

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

GenerateHighlightContent/HighLightSection.cs

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ public override bool IsReadOnly()
2525
[ConfigurationProperty("LineNrReplaceCh", DefaultValue = "", IsRequired =false)]
2626
public string LineNrReplaceCh { get { return base["LineNrReplaceCh"].ToString(); } }
2727

28+
[ConfigurationProperty("AsianBeforeSpace", DefaultValue = "", IsRequired = false)]
29+
public string AsianBeforeSpace { get { return base["AsianBeforeSpace"].ToString(); } }
30+
31+
[ConfigurationProperty("AsianAfterSpace", DefaultValue = "", IsRequired = false)]
32+
public string AsianAfterSpace { get { return base["AsianAfterSpace"].ToString(); } }
33+
2834
[ConfigurationProperty("GeneralArguments", IsRequired = true, IsDefaultCollection = true)]
2935
public GeneralArgumentsCollection GeneralArguments
3036
{

GenerateHighlightContent/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// 您可以指定所有的值,也可以依照以下的方式,使用 '*' 將組建和修訂編號
3333
// 指定為預設值:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("2.5.0.0")]
36-
[assembly: AssemblyFileVersion("2.5.0.0")]
35+
[assembly: AssemblyVersion("2.6.0.0")]
36+
[assembly: AssemblyFileVersion("2.6.0.0")]

NoteHighlightAddin/App.config

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
55
<section name="NoteHighLightForm.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
66
</sectionGroup>
7-
<section name="HighLightSection" type="GenerateHighlightContent.HighLightSection, GenerateHighlightContent, Version=2.5.0.0, Culture=neutral, PublicKeyToken=77d9ec1ac4fb0cdc"/>
7+
<section name="HighLightSection" type="GenerateHighlightContent.HighLightSection, GenerateHighlightContent, Version=2.6.0.0, Culture=neutral, PublicKeyToken=77d9ec1ac4fb0cdc"/>
88
</configSections>
99
<userSettings>
1010
<NoteHighLightForm.Properties.Settings>
@@ -23,7 +23,7 @@
2323
</NoteHighLightForm.Properties.Settings>
2424
</userSettings>
2525
<!--highlight CLI options Document:http://www.andre-simon.de/doku/highlight/en/highlight.html -->
26-
<HighLightSection FolderName="highlight" ProcessName="highlight.exe" ThemeFolder="themes" LineNrReplaceCh="">
26+
<HighLightSection FolderName="highlight" ProcessName="highlight.exe" ThemeFolder="themes" LineNrReplaceCh="" AsianBeforeSpace="4.2" AsianAfterSpace="2.0">
2727
<GeneralArguments>
2828
<add Name="InputFile" Key="-i" Value="{inputFileName}"/>
2929
<add Name="Syntax" Key="-S" Value="{codeType}"/>

0 commit comments

Comments
 (0)