Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Preparing for bugfix of [c3c733e21f7af25e]. New Delphi version. Minor code optimizations. |
---|---|
Timelines: | family | ancestors | descendants | both | bugfix/c3c733e21f7af25e |
Files: | files | file ages | folders |
SHA1: |
2ece7cf9fdf6bdb8475e9bcefcde4a32 |
User & Date: | tinus 2019-09-11 17:53:50.944 |
Context
2019-09-11
| ||
17:59 | Merge bugfix/c3c733e21f7af25e into debug. check-in: 62c3963fab user: tinus tags: debug | |
17:53 | Preparing for bugfix of [c3c733e21f7af25e]. New Delphi version. Minor code optimizations. Leaf check-in: 2ece7cf9fd user: tinus tags: bugfix/c3c733e21f7af25e | |
2017-09-04
| ||
18:29 | Prepared for distribution of v1.1.0 Leaf check-in: c1f3da2697 user: tinus tags: trunk, release, v1.1.0 | |
Changes
Changes to doc/HTMLTag-readme.txt.
1 2 3 | [About] HTMLTag plug-in for Notepad++ Written by vor0nwe (Martijn Coppoolse) - http://martijn.coppoolse.com/software/ | | | 1 2 3 4 5 6 7 8 9 10 11 | [About] HTMLTag plug-in for Notepad++ Written by vor0nwe (Martijn Coppoolse) - http://martijn.coppoolse.com/software/ using Delphi 10.2 Part of the Npp-plugins project - http://sourceforge.net/projects/npp-plugins/ Hosted on http://fossil.2of4.net/npp_htmltag/ [Introduction] This plug-in provides three core functions to Notepad++: - HTML and XML tag jumping, like the built-in brace matching (Ctrl+B / Shift+Ctrl+B), and selection |
︙ | ︙ | |||
46 47 48 49 50 51 52 53 54 55 56 57 58 59 | HTMLTag-entities.ini This file contains the list(s) of entities that will be processed. For now, only the list headed with [HTML 4] will be used. This can be adjusted if you want to use other entities. HTMLTag-readme.txt The file you're reading now. [History] - 1.1.0 - 2017-09-04 20:15 * Added: option to encode line break entities as well [689eef6cee] * Fixed: decoding a JS escape reduced the selection by one each time [e717ed1de5] - 1.0.0 - 2017-02-19 16:03 * Added: 64-bit version * Several tiny bugfixes - 0.6.0 - 2015-01-20 21:20 | > > | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | HTMLTag-entities.ini This file contains the list(s) of entities that will be processed. For now, only the list headed with [HTML 4] will be used. This can be adjusted if you want to use other entities. HTMLTag-readme.txt The file you're reading now. [History] - 1.1.1 - 2019-?? * Fixed: decoding a JS escape caused Notepad++ to crash on 64-bits [c3c733e21f7af25e] - 1.1.0 - 2017-09-04 20:15 * Added: option to encode line break entities as well [689eef6cee] * Fixed: decoding a JS escape reduced the selection by one each time [e717ed1de5] - 1.0.0 - 2017-02-19 16:03 * Added: 64-bit version * Several tiny bugfixes - 0.6.0 - 2015-01-20 21:20 |
︙ | ︙ |
Changes to doc/TODO.txt.
︙ | ︙ | |||
16 17 18 19 20 21 22 | - add option to select tags only (both start tag and end tag, using multiple selection streams feature of Np++ v5.5 and up) * On the fly (react to notifications and/or messages): - encode special characters on the fly (special cases: '<' only when inserting a space directly after it; '>' only when not after an unclosed '<'; perhaps not '&' when followed by a valid entity reference) - autoclose tags: typing '</' would close latest unclosed tag | | | | 16 17 18 19 20 21 22 23 24 25 26 | - add option to select tags only (both start tag and end tag, using multiple selection streams feature of Np++ v5.5 and up) * On the fly (react to notifications and/or messages): - encode special characters on the fly (special cases: '<' only when inserting a space directly after it; '>' only when not after an unclosed '<'; perhaps not '&' when followed by a valid entity reference) - autoclose tags: typing '</' would close latest unclosed tag - *simultaneously* rename matching tags (like Ctrl-Shift-J in Delphi, or F2 in Visual Studio) - [Request#2147949] drop down list of tags on '<', and list of attributes on space after a tag (like Stylus Studio does) |
Changes to publish/ReleaseNotes.txt.
|
| | < | | 1 2 | [Version 1.1.1 - 2019-??] * Fixed: decoding a JS escape caused Notepad++ to crash on 64-bits [c3c733e21f7af25e] |
Changes to src/LibNppPlugin/NppSimpleObjects.pas.
︙ | ︙ | |||
106 107 108 109 110 111 112 | TWindowedObject = class protected FWindowHandle: THandle; FIsNpp: boolean; public constructor Create(AWindowHandle: THandle; ANppWindow: boolean = False); | | | | 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | TWindowedObject = class protected FWindowHandle: THandle; FIsNpp: boolean; public constructor Create(AWindowHandle: THandle; ANppWindow: boolean = False); function SendMessage(const Message: UINT; wParam: WPARAM = 0; lParam: LPARAM = 0): LRESULT; overload; virtual; function SendMessage(const Message: UINT; wParam: WPARAM; lParam: Pointer): LRESULT; overload; virtual; procedure PostMessage(const Message: UINT; wParam: WPARAM = 0; lParam: LPARAM = 0); overload; virtual; procedure PostMessage(const Message: UINT; wParam: WPARAM; lParam: Pointer); overload; virtual; end; { -------------------------------------------------------------------------------------------- } TActiveDocument = class(TWindowedObject) private FPointer: Pointer; |
︙ | ︙ | |||
1117 1118 1119 1120 1121 1122 1123 | if IsNpp then begin Result := GetMessageConstString(Message); end else begin Result := GetSciMessageConstString(Message); end; end; { ------------------------------------------------------------------------------------------------ } | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 | if IsNpp then begin Result := GetMessageConstString(Message); end else begin Result := GetSciMessageConstString(Message); end; end; { ------------------------------------------------------------------------------------------------ } function TWindowedObject.SendMessage(const Message: UINT; wParam: WPARAM; lParam: LPARAM): LRESULT; //var // MsgConst: string; begin // MsgConst := GetMsgConstString(Message, FIsNpp); // DebugWrite('SendMessage', Format('hWnd: %d; Message: %d%s; wParam: %d; lParam: %d', [FWindowHandle, Message, MsgConst, wParam, lParam])); // try if SendMessageTimeout(FWindowHandle, Message, wParam, lParam, SMTO_NORMAL, 5000, @Result) = 0 then RaiseLastOSError; // DebugWrite('SendMessage', Format('hWnd: %d; Result: %d', [FWindowHandle, Result])); // except // on E: EOSError do begin // DebugWrite('SendMessage', Format('hWnd: %d; Error %d: %s', [FWindowHandle, E.ErrorCode, E.Message])); // raise; // end; // on E: Exception do begin // DebugWrite('SendMessage', Format('hWnd: %d; Error[%s]: %s', [FWindowHandle, E.ClassName, E.Message])); // raise; // end; // end; end; { ------------------------------------------------------------------------------------------------ } function TWindowedObject.SendMessage(const Message: UINT; wParam: WPARAM; lParam: Pointer): LRESULT; //var // MsgConst: string; begin // MsgConst := GetMsgConstString(Message, FIsNpp); // DebugWrite('SendMessage', Format('hWnd: %d; Message: %d%s; wParam: %d; lParam: 0x%p', [FWindowHandle, Message, MsgConst, wParam, lParam])); // try if SendMessageTimeout(FWindowHandle, Message, wParam, Windows.LPARAM(lParam), SMTO_NORMAL, 5000, @Result) = 0 then RaiseLastOSError; // DebugWrite('SendMessage', Format('hWnd: %d; Result: %d', [FWindowHandle, Result])); // except // on E: EOSError do begin // DebugWrite('SendMessage', Format('hWnd: %d; Error %d: %s', [FWindowHandle, E.ErrorCode, E.Message])); // raise; // end; // on E: Exception do begin // DebugWrite('SendMessage', Format('hWnd: %d; Error[%s]: %s', [FWindowHandle, E.ClassName, E.Message])); // raise; // end; // end; end; { ------------------------------------------------------------------------------------------------ } procedure TWindowedObject.PostMessage(const Message: UINT; wParam: WPARAM; lParam: LPARAM); //var // MsgConst: string; begin // MsgConst := GetMsgConstString(Message, FIsNpp); // DebugWrite('PostMessage', Format('hWnd: %d; Message: %d%s; wParam: %d; lParam: %d', [FWindowHandle, Message, MsgConst, wParam, lParam])); // try if Windows.PostMessage(FWindowHandle, Message, wParam, Windows.LPARAM(lParam)) = False then RaiseLastOSError; // DebugWrite('PostMessage', Format('hWnd: %d', [FWindowHandle])); // except // on E: EOSError do begin // DebugWrite('PostMessage', Format('hWnd: %d; Error %d: %s', [FWindowHandle, E.ErrorCode, E.Message])); // raise; // end; // on E: Exception do begin // DebugWrite('PostMessage', Format('hWnd: %d; Error[%s]: %s', [FWindowHandle, E.ClassName, E.Message])); // raise; // end; // end; end; { ------------------------------------------------------------------------------------------------ } procedure TWindowedObject.PostMessage(const Message: UINT; wParam: WPARAM; lParam: Pointer); //var // MsgConst: string; begin // MsgConst := GetMsgConstString(Message, FIsNpp); // DebugWrite('PostMessage', Format('hWnd: %d; Message: %d%s; wParam: %d; lParam: 0x%p', [FWindowHandle, Message, MsgConst, wParam, lParam])); // try if Windows.PostMessage(FWindowHandle, Message, wParam, Windows.LPARAM(lParam)) = False then RaiseLastOSError; // DebugWrite('PostMessage', Format('hWnd: %d', [FWindowHandle])); // except // on E: EOSError do begin // DebugWrite('PostMessage', Format('hWnd: %d; Error %d: %s', [FWindowHandle, E.ErrorCode, E.Message])); // raise; // end; // on E: Exception do begin // DebugWrite('PostMessage', Format('hWnd: %d; Error[%s]: %s', [FWindowHandle, E.ClassName, E.Message])); // raise; // end; // end; end; { ================================================================================================ } { TEditor } destructor TActiveDocument.Destroy; begin |
︙ | ︙ |
Changes to src/U_JSEncode.pas.
︙ | ︙ | |||
84 85 86 87 88 89 90 | { ------------------------------------------------------------------------------------------------ } function DoEncodeJS(const Range: TTextRange): Integer; overload; var Text: WideString; begin Text := Range.Text; | | | 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | { ------------------------------------------------------------------------------------------------ } function DoEncodeJS(const Range: TTextRange): Integer; overload; var Text: WideString; begin Text := Range.Text; Result := DoEncodeJS({var}Text); if Result > 0 then begin Range.Text := Text; end; end{DoEncodeJS}; { ------------------------------------------------------------------------------------------------ } procedure EncodeJS(Scope: TEntityReplacementScope = ersSelection); |
︙ | ︙ |
Changes to src/prj/HTMLTag.dproj.
1 2 3 4 5 6 7 8 9 | <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <ProjectGuid>{A2533A0E-8621-4A31-A675-059AFF5AA9FB}</ProjectGuid> <MainSource>HTMLTag.dpr</MainSource> <Base>True</Base> <Config Condition="'$(Config)'==''">Debug</Config> <TargetedPlatforms>3</TargetedPlatforms> <AppType>Library</AppType> <FrameworkType>VCL</FrameworkType> | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <ProjectGuid>{A2533A0E-8621-4A31-A675-059AFF5AA9FB}</ProjectGuid> <MainSource>HTMLTag.dpr</MainSource> <Base>True</Base> <Config Condition="'$(Config)'==''">Debug</Config> <TargetedPlatforms>3</TargetedPlatforms> <AppType>Library</AppType> <FrameworkType>VCL</FrameworkType> <ProjectVersion>18.3</ProjectVersion> <Platform Condition="'$(Platform)'==''">Win64</Platform> </PropertyGroup> <PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''"> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Base)'=='true') or '$(Base_Win32)'!=''"> <Base_Win32>true</Base_Win32> <CfgParent>Base</CfgParent> |
︙ | ︙ | |||
60 61 62 63 64 65 66 | <PropertyGroup Condition="'$(Base)'!=''"> <VerInfo_MinorVer>1</VerInfo_MinorVer> <DCC_UNIT_PLATFORM>false</DCC_UNIT_PLATFORM> <DCC_SYMBOL_PLATFORM>false</DCC_SYMBOL_PLATFORM> <SanitizedProjectName>HTMLTag</SanitizedProjectName> <Icon_MainIcon>HTMLTag.ico</Icon_MainIcon> <PostBuildEventCancelOnError>false</PostBuildEventCancelOnError> | < | | < | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | <PropertyGroup Condition="'$(Base)'!=''"> <VerInfo_MinorVer>1</VerInfo_MinorVer> <DCC_UNIT_PLATFORM>false</DCC_UNIT_PLATFORM> <DCC_SYMBOL_PLATFORM>false</DCC_SYMBOL_PLATFORM> <SanitizedProjectName>HTMLTag</SanitizedProjectName> <Icon_MainIcon>HTMLTag.ico</Icon_MainIcon> <PostBuildEventCancelOnError>false</PostBuildEventCancelOnError> <PostBuildEvent><![CDATA["C:\MC\Run\Util\Compression\UPX\upx.exe" --best -q "$(OUTPUTPATH)" $(PostBuildEvent)]]></PostBuildEvent> <VerInfo_DLL>true</VerInfo_DLL> <DCC_ImageBase>00400000</DCC_ImageBase> <VerInfo_Keys>CompanyName=Voronwë;FileDescription=HTMLTag plugin for Notepad++;FileVersion=1.1.0.0;InternalName=HTMLTag;LegalCopyright=Martijn Coppoolse;LegalTrademarks=;OriginalFilename=HTMLTag.dll;ProductName=Notepad++;ProductVersion=7.0.0.0;Comments=http://fossil.2of4.net/npp_htmltag</VerInfo_Keys> <DCC_UsePackage>vcl;rtl;dbrtl;adortl;vcldb;vclx;bdertl;vcldbx;ibxpress;dsnap;cds;bdecds;qrpt;teeui;teedb;tee;dss;teeqr;visualclx;visualdbclx;dsnapcrba;dsnapcon;VclSmp;vclshlctrls;vclie;xmlrtl;inet;inetdbbde;inetdbxpress;inetdb;nmfast;webdsnap;websnap;soaprtl;dbexpress;dbxcds;indy;dclOffice2k;dOCI6;CoolTrayIcon_D6plus;curlpkg;ThemeManagerD6;VirtualTreesD6;Jcl;JclVcl;JvCoreD6R;JvSystemD6R;JvStdCtrlsD6R;JvAppFrmD6R;JvBandsD6R;JvDBD6R;JvDlgsD6R;JvBDED6R;JvCmpD6R;JvCryptD6R;JvCtrlsD6R;JvCustomD6R;JvDockingD6R;JvDotNetCtrlsD6R;JvEDID6R;JvGlobusD6R;JvHMID6R;JvInterpreterD6R;JvJansD6R;JvManagedThreadsD6R;JvMMD6R;JvNetD6R;JvPageCompsD6R;JvPluginD6R;JvPrintPreviewD6R;JvRuntimeDesignD6R;JvTimeFrameworkD6R;JvUIBD6R;JvValidatorsD6R;JvWizardD6R;JvXPCtrlsD6R;$(DCC_UsePackage)</DCC_UsePackage> <DCC_ExeOutput>..\..\out\$(PLATFORM)\$(CONFIG)</DCC_ExeOutput> <DCC_Define>NPPUNICODE;$(DCC_Define)</DCC_Define> <DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;Winapi;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)</DCC_Namespace> |
︙ | ︙ | |||
114 115 116 117 118 119 120 | <DCC_SymbolReferenceInfo>2</DCC_SymbolReferenceInfo> <DCC_Define>DEBUG;$(DCC_Define)</DCC_Define> <DCC_Optimize>false</DCC_Optimize> <DCC_GenerateStackFrames>true</DCC_GenerateStackFrames> </PropertyGroup> <PropertyGroup Condition="'$(Cfg_2_Win32)'!=''"> <AppEnableRuntimeThemes>true</AppEnableRuntimeThemes> | | < < | 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | <DCC_SymbolReferenceInfo>2</DCC_SymbolReferenceInfo> <DCC_Define>DEBUG;$(DCC_Define)</DCC_Define> <DCC_Optimize>false</DCC_Optimize> <DCC_GenerateStackFrames>true</DCC_GenerateStackFrames> </PropertyGroup> <PropertyGroup Condition="'$(Cfg_2_Win32)'!=''"> <AppEnableRuntimeThemes>true</AppEnableRuntimeThemes> <PostBuildEvent><![CDATA[]]></PostBuildEvent> </PropertyGroup> <PropertyGroup Condition="'$(Cfg_2_Win64)'!=''"> <AppEnableRuntimeThemes>true</AppEnableRuntimeThemes> </PropertyGroup> <ItemGroup> <DelphiCompile Include="$(MainSource)"> <MainSource>MainSource</MainSource> |
︙ | ︙ |