Skip to content

Commit 1b2898d

Browse files
ver.1.5.1
- Fixed Preview of Markdown files with extensions different from .markdown
1 parent 8ba8ce5 commit 1b2898d

10 files changed

+33
-23
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Markdown Editor and Shell Extensions [![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg)](https://opensource.org/licenses/Apache-2.0)
22

3-
**Latest Version 1.5.0 - 24 Jun 2023**
3+
**Latest Version 1.5.1 - 26 Jun 2023**
44

55
**A collection of tools for markdown files, to edit and view content:**
66

@@ -59,6 +59,9 @@ To manually install the SVGShellExtensions.dll follow these steps:
5959

6060
## Release Notes ##
6161

62+
26 Jun 2023: ver. 1.5.1
63+
- Fixed Preview of Markdown files with extensions different from .markdown
64+
6265
24 Jun 2023: ver. 1.5.0
6366
- Autoload local markdown files when clicked into Preview
6467
- The editor can open all markdown extensions: .md, .mkd, .mdwn, .mdown, .mdtxt, .mdtext, .markdown, .txt, .text'

Setup/MDShellExtensions.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; Script generated by the Inno Setup Script Wizard.
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33
#define MyAppName 'MarkDown Shell Extensions and Editor'
4-
#define MyAppVersion '1.5.0'
4+
#define MyAppVersion '1.5.1'
55

66
[Setup]
77
AppName={#MyAppName}

Source/MDShellEx.PreviewHandlerRegister.pas

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ implementation
6262
SysUtils,
6363
ShlObj,
6464
System.Win.ComConst,
65+
MDShellEx.Misc,
6566
ComServ;
6667

6768
constructor TPreviewHandlerRegister.Create(APreviewHandlerClass: TPreviewHandlerClass;
@@ -170,6 +171,13 @@ procedure TPreviewHandlerRegister.UpdateRegistry(ARegister: Boolean);
170171
sAppID: string;
171172
sClassID: string;
172173
LRegKey: string;
174+
LExtension: string;
175+
176+
procedure RegisterExtension(const AExtension: string);
177+
begin
178+
LRegKey := RootPrefix + AExtension + '\shellex\' + SID_IPreviewHandler;
179+
CreateRegKey(LRegKey, '', sClassID, RootKey);
180+
end;
173181
begin
174182

175183
if Instancing = ciInternal then
@@ -195,15 +203,9 @@ procedure TPreviewHandlerRegister.UpdateRegistry(ARegister: Boolean);
195203
begin
196204
CreateRegKey(sComServerKey, 'ProgID', ProgID, RootKey);
197205

198-
//Add extension for .md files
199-
CreateRegKey(RootPrefix + '.md' + '\shellex\' + SID_IPreviewHandler, '', sClassID, RootKey);
200-
CreateRegKey(RootPrefix + '.mkd' + '\shellex\' + SID_IPreviewHandler, '', sClassID, RootKey);
201-
CreateRegKey(RootPrefix + '.mdwn' + '\shellex\' + SID_IPreviewHandler, '', sClassID, RootKey);
202-
CreateRegKey(RootPrefix + '.mdown' + '\shellex\' + SID_IPreviewHandler, '', sClassID, RootKey);
203-
CreateRegKey(RootPrefix + '.mdtxt' + '\shellex\' + SID_IPreviewHandler, '', sClassID, RootKey);
204-
CreateRegKey(RootPrefix + '.mdtext' + '\shellex\' + SID_IPreviewHandler, '', sClassID, RootKey);
205-
CreateRegKey(RootPrefix + '.markdown' + '\shellex\' + SID_IPreviewHandler, '', sClassID, RootKey);
206-
206+
//Register for supported files ('.md','.mkd','.mdwn','.mdown','.mdtxt','.mdtext','.markdown')
207+
for LExtension in AMarkDownFileExt do
208+
RegisterExtension(LExtension);
207209
CreateRegKey(sComServerKey, 'VersionIndependentProgID', ProgID, RootKey);
208210
CreateRegKey(RootPrefix + ProgID + '\shellex\' + SID_IPreviewHandler, '', sClassID, RootKey);
209211
CreateRegKey('SOFTWARE\Microsoft\Windows\CurrentVersion\PreviewHandlers', sClassID, Description, RootUserReg);

Source/MDShellEx.ThumbnailHandlerRegister.pas

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ implementation
6363
SysUtils,
6464
ShlObj,
6565
System.Win.ComConst,
66+
MDShellEx.Misc,
6667
ComServ;
6768

6869
constructor TThumbnailHandlerRegister.Create(ATThumbnailHandlerClass: TThumbnailHandlerClass;
@@ -147,6 +148,13 @@ procedure TThumbnailHandlerRegister.UpdateRegistry(Register: Boolean);
147148
sAppID: string;
148149
sClassID: string;
149150
LRegKey: string;
151+
LExtension: string;
152+
153+
procedure RegisterExtension(const AExtension: string);
154+
begin
155+
LRegKey := RootPrefix + AExtension + '\shellex\' + ThumbnailProviderGUID;
156+
CreateRegKey(LRegKey, '', sClassID, RootKey);
157+
end;
150158
begin
151159

152160
if Instancing = ciInternal then
@@ -170,17 +178,11 @@ procedure TThumbnailHandlerRegister.UpdateRegistry(Register: Boolean);
170178
begin
171179
CreateRegKey(sComServerKey, 'ProgID', ProgID, RootKey);
172180

173-
//Add extension for .md files
174-
CreateRegKey(RootPrefix + '.md' + '\shellex\' + ThumbnailProviderGUID, '', sClassID, RootKey);
175-
CreateRegKey(RootPrefix + '.mkd' + '\shellex\' + ThumbnailProviderGUID, '', sClassID, RootKey);
176-
CreateRegKey(RootPrefix + '.mdwn' + '\shellex\' + ThumbnailProviderGUID, '', sClassID, RootKey);
177-
CreateRegKey(RootPrefix + '.mdown' + '\shellex\' + ThumbnailProviderGUID, '', sClassID, RootKey);
178-
CreateRegKey(RootPrefix + '.mdtxt' + '\shellex\' + ThumbnailProviderGUID, '', sClassID, RootKey);
179-
CreateRegKey(RootPrefix + '.mdtext' + '\shellex\' + ThumbnailProviderGUID, '', sClassID, RootKey);
180-
CreateRegKey(RootPrefix + '.markdown' + '\shellex\' + ThumbnailProviderGUID, '', sClassID, RootKey);
181+
//Register for supported files ('.md','.mkd','.mdwn','.mdown','.mdtxt','.mdtext','.markdown')
182+
for LExtension in AMarkDownFileExt do
183+
RegisterExtension(LExtension);
181184

182185
CreateRegKey(sComServerKey, 'VersionIndependentProgID', ProgID, RootKey);
183-
184186
LRegKey := RootPrefix + ProgID + '\shellex\' + ThumbnailProviderGUID;
185187
CreateRegKey(LRegKey, '', sClassID, RootKey);
186188
end;

Source/MDShellExtensions.dproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<Icon_MainIcon>..\Icons\logo.ico</Icon_MainIcon>
6565
<Manifest_File>$(BDS)\bin\default_app.manifest</Manifest_File>
6666
<VerInfo_Locale>1040</VerInfo_Locale>
67-
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=MarkDown Shell Extensions 64bit;FileVersion=1.5.0.0;InternalName=;LegalCopyright=Copyright © 2021-2023 Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProductName=MarkDown Shell Extensions 64bit;ProductVersion=1.5;Comments=</VerInfo_Keys>
67+
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=MarkDown Shell Extensions 64bit;FileVersion=1.5.1.0;InternalName=;LegalCopyright=Copyright © 2021-2023 Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProductName=MarkDown Shell Extensions 64bit;ProductVersion=1.5;Comments=</VerInfo_Keys>
6868
<Custom_Styles>Glow|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Glow.vsf;Sky|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Sky.vsf;Windows10|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10.vsf;&quot;Windows10 Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Dark.vsf&quot;;&quot;Windows10 SlateGray|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10SlateGray.vsf&quot;;&quot;Windows11 Modern Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Modern_Dark.vsf&quot;;&quot;Windows11 Modern Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Modern_Light.vsf&quot;</Custom_Styles>
6969
<DCC_UsePackage>rtl;vcl;vclx;vclactnband;xmlrtl;VclSmp;vclimg;svnui;svn;bdertl;TeeUI;TeeDB;Tee;vcldb;dbrtl;vcldbx;vcltouch;dsnap;dsnapcon;vclib;ibxpress;adortl;IndyCore;IndySystem;IndyProtocols;inet;intrawebdb_110_150;Intraweb_110_150;vclie;websnap;webdsnap;inetdb;inetdbbde;inetdbxpress;soaprtl;vclribbon;dbexpress;DbxCommonDriver;DataSnapIndy10ServerTransport;DataSnapProviderClient;DbxClientDriver;DataSnapClient;dbxcds;DataSnapServer;AzureCloud;DBXInterBaseDriver;DBXMySQLDriver;DBXFirebirdDriver;DBXSybaseASEDriver;DBXSybaseASADriver;DBXOracleDriver;DBXMSSQLDriver;DBXInformixDriver;DBXDb2Driver;Hydra_Core_D15;SynEdit_RXE;mbColorLibDXE;JclDeveloperTools;Jcl;JclVcl;JclContainers;JvCore;JvSystem;JvStdCtrls;JvAppFrm;JvBands;JvDB;JvDlgs;JvBDE;JvControls;JvCmp;JvCrypt;JvCustom;JvDocking;JvDotNetCtrls;JvGlobus;JvHMI;JvJans;JvManagedThreads;JvMM;JvNet;JvPageComps;JvPascalInterpreter;JvPluginSystem;JvPrintPreview;JvRuntimeDesign;JvTimeFramework;JvWizards;JvXPCtrls;WinSkinDXE;bsfd2011;IceTabSet;$(DCC_UsePackage)</DCC_UsePackage>
7070
<DCC_DcuOutput>..\Dcu\$(Platform)\$(Config)</DCC_DcuOutput>
@@ -73,6 +73,7 @@
7373
<DCC_UnitSearchPath>..\Ext\SynEdit\Source;..\Ext\SVGIconImageList\Source;..\Ext\SVGIconImageList\SVG;..\Ext\VCLStyleUtils\Common;..\Ext\VCLStyleUtils\DDetours\Source;..\Ext\HTMLViewer\Source;..\Ext\SynPDF;..\Ext\SVGIconImageList\Image32\source;..\Ext\SVGIconImageList\Image32\source\Image32_SVG;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
7474
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
7575
<VerInfo_MinorVer>5</VerInfo_MinorVer>
76+
<VerInfo_Release>1</VerInfo_Release>
7677
</PropertyGroup>
7778
<PropertyGroup Condition="'$(Base_Win32)'!=''">
7879
<Debugger_HostApplication>D:\ETHEA\MarkdownShellExtensions\Debug\Preview Handlers\OpenDialog\OpenDialogTest.exe</Debugger_HostApplication>

Source/MDShellExtensions.res

0 Bytes
Binary file not shown.

Source/MDShellExtensions32.dproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<Icon_MainIcon>..\Icons\logo.ico</Icon_MainIcon>
5959
<Manifest_File>$(BDS)\bin\default_app.manifest</Manifest_File>
6060
<VerInfo_Locale>1040</VerInfo_Locale>
61-
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=MarkDown Shell Extensions 32bit;FileVersion=1.5.0.0;InternalName=;LegalCopyright=Copyright © 2021-2023 Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProductName=MarkDown Shell Extensions 32bit;ProductVersion=1.5;Comments=</VerInfo_Keys>
61+
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=MarkDown Shell Extensions 32bit;FileVersion=1.5.1.0;InternalName=;LegalCopyright=Copyright © 2021-2023 Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProductName=MarkDown Shell Extensions 32bit;ProductVersion=1.5;Comments=</VerInfo_Keys>
6262
<Custom_Styles>Glow|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Glow.vsf;Sky|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Sky.vsf;Windows10|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10.vsf;&quot;Windows10 Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Dark.vsf&quot;;&quot;Windows10 SlateGray|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10SlateGray.vsf&quot;;&quot;Windows11 Modern Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Modern_Dark.vsf&quot;;&quot;Windows11 Modern Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Modern_Light.vsf&quot;</Custom_Styles>
6363
<DCC_UsePackage>rtl;vcl;vclx;vclactnband;xmlrtl;VclSmp;vclimg;svnui;svn;bdertl;TeeUI;TeeDB;Tee;vcldb;dbrtl;vcldbx;vcltouch;dsnap;dsnapcon;vclib;ibxpress;adortl;IndyCore;IndySystem;IndyProtocols;inet;intrawebdb_110_150;Intraweb_110_150;vclie;websnap;webdsnap;inetdb;inetdbbde;inetdbxpress;soaprtl;vclribbon;dbexpress;DbxCommonDriver;DataSnapIndy10ServerTransport;DataSnapProviderClient;DbxClientDriver;DataSnapClient;dbxcds;DataSnapServer;AzureCloud;DBXInterBaseDriver;DBXMySQLDriver;DBXFirebirdDriver;DBXSybaseASEDriver;DBXSybaseASADriver;DBXOracleDriver;DBXMSSQLDriver;DBXInformixDriver;DBXDb2Driver;Hydra_Core_D15;SynEdit_RXE;mbColorLibDXE;JclDeveloperTools;Jcl;JclVcl;JclContainers;JvCore;JvSystem;JvStdCtrls;JvAppFrm;JvBands;JvDB;JvDlgs;JvBDE;JvControls;JvCmp;JvCrypt;JvCustom;JvDocking;JvDotNetCtrls;JvGlobus;JvHMI;JvJans;JvManagedThreads;JvMM;JvNet;JvPageComps;JvPascalInterpreter;JvPluginSystem;JvPrintPreview;JvRuntimeDesign;JvTimeFramework;JvWizards;JvXPCtrls;WinSkinDXE;bsfd2011;IceTabSet;$(DCC_UsePackage)</DCC_UsePackage>
6464
<DCC_DcuOutput>..\Dcu\$(Platform)\$(Config)</DCC_DcuOutput>
@@ -68,6 +68,7 @@
6868
<DCC_ExeOutput>..\Bin32</DCC_ExeOutput>
6969
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
7070
<VerInfo_MinorVer>5</VerInfo_MinorVer>
71+
<VerInfo_Release>1</VerInfo_Release>
7172
</PropertyGroup>
7273
<PropertyGroup Condition="'$(Base_Win32)'!=''">
7374
<Debugger_HostApplication>D:\ETHEA\FExplorer\Debug\Preview Handlers\OpenDialog\OpenDialogTest.exe</Debugger_HostApplication>

Source/MDShellExtensions32.res

0 Bytes
Binary file not shown.

Source/MDTextEditor.dproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<Icon_MainIcon>..\Icons\logo.ico</Icon_MainIcon>
6868
<Manifest_File>$(BDS)\bin\default_app.manifest</Manifest_File>
6969
<VerInfo_Locale>1040</VerInfo_Locale>
70-
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=Markdown files Editor;FileVersion=1.5.0.0;InternalName=;LegalCopyright=Copyright © 2021-2023 - Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProductName=Markdown files Editor;ProductVersion=1.5;Comments=</VerInfo_Keys>
70+
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=Markdown files Editor;FileVersion=1.5.1.0;InternalName=;LegalCopyright=Copyright © 2021-2023 - Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProductName=Markdown files Editor;ProductVersion=1.5;Comments=</VerInfo_Keys>
7171
<Custom_Styles>Glow|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Glow.vsf;Sky|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Sky.vsf;Windows10|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10.vsf;&quot;Windows10 Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Dark.vsf&quot;;&quot;Windows10 SlateGray|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10SlateGray.vsf&quot;;&quot;Windows11 Modern Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Modern_Dark.vsf&quot;;&quot;Windows11 Modern Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Modern_Light.vsf&quot;</Custom_Styles>
7272
<DCC_DebugInformation>0</DCC_DebugInformation>
7373
<DCC_ImportedDataReferences>false</DCC_ImportedDataReferences>
@@ -76,6 +76,7 @@
7676
<DCC_DcuOutput>..\Dcu\$(Platform)\$(Config)</DCC_DcuOutput>
7777
<DCC_DependencyCheckOutputName>..\..\exe\InstantXMLEditor.exe</DCC_DependencyCheckOutputName>
7878
<VerInfo_MinorVer>5</VerInfo_MinorVer>
79+
<VerInfo_Release>1</VerInfo_Release>
7980
</PropertyGroup>
8081
<PropertyGroup Condition="'$(Base_Win32)'!=''">
8182
<DCC_Namespace>System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Bde;$(DCC_Namespace)</DCC_Namespace>

Source/MDTextEditor.res

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)