├── .github ├── workflows │ └── build.yml └── FUNDING.yml ├── .gitignore ├── .editorconfig ├── Plugin ├── StdAfx.cpp ├── Npp │ ├── Sci_Position.h │ ├── PluginInterface.h │ ├── Notepad_plus_msgs.h │ ├── menuCmdID.h │ └── Scintilla.h ├── version.h ├── StdAfx.h ├── Plugin.cpp ├── Plugin.rc ├── PluginDefinition.h └── PluginDefinition.cpp ├── .gitattributes ├── vs.proj ├── PluginDarkNpp.vcxproj.filters └── PluginDarkNpp.vcxproj ├── VS ├── NppPlugin.Cpp.Default.props └── NppPlugin.Cpp.props ├── PluginDarkNpp.sln ├── README.md └── LICENSE.md /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build 2 | 3 | on: [push] 4 | 5 | jobs: 6 | build: 7 | 8 | runs-on: windows-latest 9 | 10 | steps: 11 | - name: Check out source code 12 | uses: actions/checkout@v1 13 | 14 | - name: Build 15 | run: .\build.bat 16 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Dot Files/Folder 2 | .* 3 | 4 | # Prerequisites 5 | *.d 6 | 7 | # Compiled Object files 8 | *.slo 9 | *.lo 10 | *.o 11 | *.obj 12 | 13 | # Precompiled Headers 14 | *.gch 15 | *.pch 16 | 17 | # Compiled Dynamic libraries 18 | *.so 19 | *.dylib 20 | *.dll 21 | 22 | # Fortran module files 23 | *.mod 24 | *.smod 25 | 26 | # Compiled Static libraries 27 | *.lai 28 | *.la 29 | *.a 30 | *.lib 31 | 32 | # Executables 33 | *.exe 34 | *.out 35 | *.app 36 | 37 | # Folders 38 | *.vscode 39 | *.git 40 | *.vs 41 | *.cppcheck 42 | 43 | Build 44 | Intermediate 45 | 46 | # Visual Studio Generated 47 | *.aps 48 | *.vcxproj.user 49 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: https://EditorConfig.org 2 | 3 | # top-most EditorConfig file 4 | root = true 5 | 6 | # Use space for indentation. 7 | [*] 8 | indent_style = space 9 | 10 | # C/C++/C# Code Files 11 | [*.{c,cpp,cxx,c++,cc,cs,h,hpp,h++,hh}] 12 | indent_size = 4 13 | insert_final_newline = true 14 | trim_trailing_whitespace = true 15 | 16 | # Visual Studio Project Files (XML) 17 | [*.{csproj,vcxproj,vcxproj.filters,props}] 18 | indent_size = 2 19 | 20 | [*.sln] 21 | indent_style = tab 22 | 23 | # Powershell Scripts 24 | [*.ps1] 25 | indent_size = 2 26 | 27 | # Markdown 28 | [*.{md,markdown}] 29 | trim_trailing_whitespace = false 30 | 31 | # Notepad++ Headers 32 | [Plugin/Npp/**.h] 33 | indent_style = tab 34 | -------------------------------------------------------------------------------- /Plugin/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2020-2025 oZone10 3 | This program is free software: you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation, either version 3 of the License, or 6 | (at your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | 13 | You should have received a copy of the GNU General Public License 14 | along with this program. If not, see . 15 | */ 16 | 17 | #include "StdAfx.h" 18 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ozone10] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry 12 | polar: # Replace with a single Polar username 13 | buy_me_a_coffee: # Replace with a single Buy Me a Coffee username 14 | custom: ['https://paypal.me/ozone10/']# Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 15 | -------------------------------------------------------------------------------- /Plugin/Npp/Sci_Position.h: -------------------------------------------------------------------------------- 1 | // Scintilla source code edit control 2 | /** @file Sci_Position.h 3 | ** Define the Sci_Position type used in Scintilla's external interfaces. 4 | ** These need to be available to clients written in C so are not in a C++ namespace. 5 | **/ 6 | // Copyright 2015 by Neil Hodgson 7 | // The License.txt file describes the conditions under which this software may be distributed. 8 | 9 | #ifndef SCI_POSITION_H 10 | #define SCI_POSITION_H 11 | 12 | #include 13 | 14 | // Basic signed type used throughout interface 15 | typedef ptrdiff_t Sci_Position; 16 | 17 | // Unsigned variant used for ILexer::Lex and ILexer::Fold 18 | typedef size_t Sci_PositionU; 19 | 20 | // For Sci_CharacterRange which is defined as long to be compatible with Win32 CHARRANGE 21 | typedef intptr_t Sci_PositionCR; 22 | 23 | #ifdef _WIN32 24 | #define SCI_METHOD __stdcall 25 | #else 26 | #define SCI_METHOD 27 | #endif 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /Plugin/version.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2020-2025 oZone10 3 | This program is free software: you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation, either version 3 of the License, or 6 | (at your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | 13 | You should have received a copy of the GNU General Public License 14 | along with this program. If not, see . 15 | */ 16 | 17 | #pragma once 18 | 19 | #define VER_PLUGIN_NAME_STR "DarkNpp" 20 | #define VER_PLUGIN_MAJOR 0 21 | #define VER_PLUGIN_MINOR 5 22 | #define VER_PLUGIN_REVISION 0 23 | #define VER_PLUGIN_BUILD 0 24 | #define VER_PLUGIN_AUTHOR_STR "oZone10" 25 | #define VER_PLUGIN_YEAR 2025 26 | -------------------------------------------------------------------------------- /Plugin/StdAfx.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2020-2025 oZone10 3 | This program is free software: you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation, either version 3 of the License, or 6 | (at your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | 13 | You should have received a copy of the GNU General Public License 14 | along with this program. If not, see . 15 | */ 16 | 17 | #pragma once 18 | 19 | // WinAPI 20 | #include 21 | 22 | #include 23 | #include 24 | #include 25 | #include 26 | 27 | // std 28 | #include 29 | 30 | // Npp API 31 | #include ".\Npp\menuCmdID.h" 32 | #include ".\Npp\PluginInterface.h" 33 | 34 | #define UNUSED(expr) \ 35 | do { \ 36 | (void)(expr); \ 37 | } while (0) 38 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Set the default behavior. 2 | * text=auto 3 | 4 | # Visual Studio Project Files 5 | *.sln text eol=crlf 6 | *.csproj text eol=crlf 7 | *.vcxproj text eol=crlf 8 | 9 | *.filters text eol=crlf 10 | *.props text eol=crlf 11 | 12 | # Resource File 13 | *.rc text eol=crlf 14 | 15 | # C/C++/C# Code Files 16 | *.c text diff=c 17 | *.cpp text diff=cpp 18 | *.cxx text diff=cpp 19 | *.c++ text diff=cpp 20 | *.cc text diff=cpp 21 | *.cs text diff=csharp 22 | 23 | *.h text diff=c 24 | *.hpp text diff=cpp 25 | *.h++ text diff=cpp 26 | *.hh text diff=cpp 27 | 28 | # Dynamic libraries 29 | *.dll binary 30 | 31 | # Static libraries 32 | *.lib binary 33 | 34 | # Executables 35 | *.exe binary 36 | 37 | # Windows scripts 38 | *.bat text eol=crlf 39 | *.cmd text eol=crlf 40 | *.ps1 text eol=crlf 41 | 42 | # Other 43 | *.md text 44 | *.txt text 45 | 46 | *.xml text 47 | *.yaml text 48 | *.yml text 49 | 50 | .editorconfig text 51 | .gitattributes text 52 | .gitignore text 53 | 54 | # Third Party Files 55 | -------------------------------------------------------------------------------- /vs.proj/PluginDarkNpp.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Source Files 6 | 7 | 8 | Source Files 9 | 10 | 11 | Source Files 12 | 13 | 14 | 15 | 16 | Header Files 17 | 18 | 19 | Header Files 20 | 21 | 22 | Header Files 23 | 24 | 25 | 26 | 27 | {03cfd021-7ee0-4e37-a77d-c79850c295b5} 28 | 29 | 30 | {ba4683d3-05f8-4c20-8d44-733465a0cf5d} 31 | 32 | 33 | {c89686b8-d27b-4453-ac9a-54f25d8255d3} 34 | 35 | 36 | 37 | 38 | Resource Files 39 | 40 | 41 | -------------------------------------------------------------------------------- /VS/NppPlugin.Cpp.Default.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Debug 10 | x64 11 | 12 | 13 | Release 14 | Win32 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | ReleaseMD 22 | Win32 23 | 24 | 25 | ReleaseMD 26 | x64 27 | 28 | 29 | 30 | 31 | false 32 | $(ProjectName) 33 | DynamicLibrary 34 | 10.0 35 | v143 36 | Unicode 37 | 38 | 39 | -------------------------------------------------------------------------------- /PluginDarkNpp.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.30011.22 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DarkNpp", "vs.proj\PluginDarkNpp.vcxproj", "{9D04DBD5-E12E-44E0-A683-6F43F21D533B}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Debug|x64 = Debug|x64 12 | Release|Win32 = Release|Win32 13 | Release|x64 = Release|x64 14 | ReleaseMD|Win32 = ReleaseMD|Win32 15 | ReleaseMD|x64 = ReleaseMD|x64 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Debug|Win32.ActiveCfg = Debug|Win32 19 | {9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Debug|Win32.Build.0 = Debug|Win32 20 | {9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Debug|x64.ActiveCfg = Debug|x64 21 | {9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Debug|x64.Build.0 = Debug|x64 22 | {9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Release|Win32.ActiveCfg = Release|Win32 23 | {9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Release|Win32.Build.0 = Release|Win32 24 | {9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Release|x64.ActiveCfg = Release|x64 25 | {9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Release|x64.Build.0 = Release|x64 26 | {9D04DBD5-E12E-44E0-A683-6F43F21D533B}.ReleaseMD|Win32.ActiveCfg = ReleaseMD|Win32 27 | {9D04DBD5-E12E-44E0-A683-6F43F21D533B}.ReleaseMD|Win32.Build.0 = ReleaseMD|Win32 28 | {9D04DBD5-E12E-44E0-A683-6F43F21D533B}.ReleaseMD|x64.ActiveCfg = ReleaseMD|x64 29 | {9D04DBD5-E12E-44E0-A683-6F43F21D533B}.ReleaseMD|x64.Build.0 = ReleaseMD|x64 30 | EndGlobalSection 31 | GlobalSection(SolutionProperties) = preSolution 32 | HideSolutionNode = FALSE 33 | EndGlobalSection 34 | GlobalSection(ExtensibilityGlobals) = postSolution 35 | SolutionGuid = {C09AADBD-2FEC-4A21-A86A-18E931F8C5CB} 36 | EndGlobalSection 37 | EndGlobal 38 | -------------------------------------------------------------------------------- /Plugin/Plugin.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2020-2022 oZone10 3 | This program is free software: you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation, either version 3 of the License, or 6 | (at your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | 13 | You should have received a copy of the GNU General Public License 14 | along with this program. If not, see . 15 | */ 16 | 17 | #include "PluginDefinition.h" 18 | 19 | extern FuncItem funcItem[nbFunc]; 20 | extern NppData nppData; 21 | 22 | //BOOL APIENTRY DllMain(HANDLE hModule, DWORD reasonForCall, LPVOID /*lpReserved*/) 23 | //{ 24 | // switch (reasonForCall) 25 | // { 26 | // case DLL_PROCESS_ATTACH: 27 | // pluginInit(hModule); 28 | // break; 29 | // 30 | // case DLL_PROCESS_DETACH: 31 | // pluginCleanUp(); 32 | // break; 33 | // 34 | // case DLL_THREAD_ATTACH: 35 | // break; 36 | // 37 | // case DLL_THREAD_DETACH: 38 | // break; 39 | // } 40 | // return TRUE; 41 | //} 42 | 43 | 44 | extern "C" __declspec(dllexport) void setInfo(NppData notpadPlusData) 45 | { 46 | nppData = notpadPlusData; 47 | PluginInit(); 48 | } 49 | 50 | extern "C" __declspec(dllexport) const TCHAR * getName() 51 | { 52 | return NPP_PLUGIN_NAME; 53 | } 54 | 55 | extern "C" __declspec(dllexport) FuncItem * getFuncsArray(int* nbF) 56 | { 57 | *nbF = nbFunc; 58 | return funcItem; 59 | } 60 | 61 | 62 | extern "C" __declspec(dllexport) void beNotified(SCNotification* /*notifyCode*/) 63 | {/* 64 | switch (notifyCode->nmhdr.code) 65 | { 66 | case NPPN_SHUTDOWN: 67 | { 68 | commandMenuCleanUp(); 69 | } 70 | break; 71 | 72 | default: 73 | return; 74 | }*/ 75 | } 76 | 77 | extern "C" __declspec(dllexport) LRESULT messageProc(UINT /*Message*/, WPARAM /*wParam*/, LPARAM /*lParam*/) 78 | {/* 79 | if (Message == WM_MOVE) 80 | { 81 | ::MessageBox(NULL, "move", "", MB_OK); 82 | } 83 | */ 84 | return TRUE; 85 | } 86 | 87 | extern "C" __declspec(dllexport) BOOL isUnicode() 88 | { 89 | return TRUE; 90 | } 91 | -------------------------------------------------------------------------------- /Plugin/Npp/PluginInterface.h: -------------------------------------------------------------------------------- 1 | // This file is part of Notepad++ project 2 | // Copyright (C)2021 Don HO 3 | 4 | // This program is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // at your option any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program. If not, see . 16 | 17 | 18 | #pragma once 19 | 20 | #include "Scintilla.h" 21 | #include "Notepad_plus_msgs.h" 22 | 23 | const int nbChar = 64; 24 | 25 | typedef const TCHAR * (__cdecl * PFUNCGETNAME)(); 26 | 27 | struct NppData 28 | { 29 | HWND _nppHandle = nullptr; 30 | HWND _scintillaMainHandle = nullptr; 31 | HWND _scintillaSecondHandle = nullptr; 32 | }; 33 | 34 | typedef void (__cdecl * PFUNCSETINFO)(NppData); 35 | typedef void (__cdecl * PFUNCPLUGINCMD)(); 36 | typedef void (__cdecl * PBENOTIFIED)(SCNotification *); 37 | typedef LRESULT (__cdecl * PMESSAGEPROC)(UINT Message, WPARAM wParam, LPARAM lParam); 38 | 39 | 40 | struct ShortcutKey 41 | { 42 | bool _isCtrl = false; 43 | bool _isAlt = false; 44 | bool _isShift = false; 45 | UCHAR _key = 0; 46 | }; 47 | 48 | struct FuncItem 49 | { 50 | TCHAR _itemName[nbChar] = { '\0' }; 51 | PFUNCPLUGINCMD _pFunc = nullptr; 52 | int _cmdID = 0; 53 | bool _init2Check = false; 54 | ShortcutKey *_pShKey = nullptr; 55 | }; 56 | 57 | typedef FuncItem * (__cdecl * PFUNCGETFUNCSARRAY)(int *); 58 | 59 | // You should implement (or define an empty function body) those functions which are called by Notepad++ plugin manager 60 | extern "C" __declspec(dllexport) void setInfo(NppData); 61 | extern "C" __declspec(dllexport) const TCHAR * getName(); 62 | extern "C" __declspec(dllexport) FuncItem * getFuncsArray(int *); 63 | extern "C" __declspec(dllexport) void beNotified(SCNotification *); 64 | extern "C" __declspec(dllexport) LRESULT messageProc(UINT Message, WPARAM wParam, LPARAM lParam); 65 | 66 | // This API return always true now, since Notepad++ isn't compiled in ANSI mode anymore 67 | extern "C" __declspec(dllexport) BOOL isUnicode(); 68 | 69 | -------------------------------------------------------------------------------- /Plugin/Plugin.rc: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2020-2025 oZone10 3 | This program is free software: you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation, either version 3 of the License, or 6 | (at your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | 13 | You should have received a copy of the GNU General Public License 14 | along with this program. If not, see . 15 | */ 16 | 17 | #define APSTUDIO_READONLY_SYMBOLS 18 | #include 19 | #undef APSTUDIO_READONLY_SYMBOLS 20 | 21 | #define STRINGIZE2(s) #s 22 | #define STRINGIZE(s) STRINGIZE2(s) 23 | 24 | #include "version.h" 25 | #ifdef _WIN64 26 | #define VER_BIT_STR " (64-bit)" 27 | #else 28 | #define VER_BIT_STR " (32-bit)" 29 | #endif //_WIN64 30 | 31 | #define VER_PLUGIN_COPYRIGHT_STR L"@" STRINGIZE(VER_PLUGIN_YEAR) " by " VER_PLUGIN_AUTHOR_STR 32 | #define VER_PLUGIN VER_PLUGIN_MAJOR,VER_PLUGIN_MINOR,VER_PLUGIN_REVISION,VER_PLUGIN_BUILD 33 | #define VER_PLUGIN_STR STRINGIZE(VER_PLUGIN_MAJOR) "." STRINGIZE(VER_PLUGIN_MINOR) "." STRINGIZE(VER_PLUGIN_REVISION) 34 | 35 | ///////////////////////////////////////////////////////////////////////////// 36 | // 37 | // Version 38 | // 39 | 40 | VS_VERSION_INFO VERSIONINFO 41 | FILEVERSION VER_PLUGIN 42 | PRODUCTVERSION VER_PLUGIN 43 | FILEFLAGSMASK 0x17L 44 | #ifdef _DEBUG 45 | FILEFLAGS VS_FF_DEBUG 46 | #else 47 | FILEFLAGS 0x0L 48 | #endif 49 | FILEOS VOS_NT_WINDOWS32 50 | FILETYPE VFT_DLL 51 | FILESUBTYPE VFT_UNKNOWN 52 | BEGIN 53 | BLOCK "StringFileInfo" 54 | BEGIN 55 | BLOCK "040904E4" 56 | BEGIN 57 | VALUE "CompanyName", VER_PLUGIN_AUTHOR_STR 58 | VALUE "FileDescription", VER_PLUGIN_NAME_STR " - Notepad++ plugin" VER_BIT_STR 59 | VALUE "FileVersion", VER_PLUGIN_STR 60 | VALUE "InternalName", VER_PLUGIN_NAME_STR 61 | VALUE "LegalCopyright", VER_PLUGIN_COPYRIGHT_STR 62 | VALUE "OriginalFilename", VER_PLUGIN_NAME_STR ".dll" 63 | VALUE "ProductName", VER_PLUGIN_NAME_STR 64 | VALUE "ProductVersion", VER_PLUGIN_STR 65 | END 66 | END 67 | BLOCK "VarFileInfo" 68 | BEGIN 69 | VALUE "Translation", 0x409, 1252 70 | END 71 | END 72 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DarkNpp 2 | 3 | [![Build status](https://img.shields.io/github/actions/workflow/status/ozone10/Npp-DarkNpp/build.yml?branch=master&logo=Github)](https://github.com/ozone10/Npp-DarkNpp) 4 | [![Latest release](https://img.shields.io/github/v/release/ozone10/Npp-DarkNpp?include_prereleases)](https://github.com/ozone10/Npp-DarkNpp/releases/latest) 5 | [![Total downloads](https://img.shields.io/github/downloads/ozone10/Npp-DarkNpp/total.svg)](https://github.com/ozone10/Npp-DarkNpp/releases) 6 | [![Licence](https://img.shields.io/github/license/ozone10/Npp-DarkNpp?color=9cf)](https://www.gnu.org/licenses/gpl-3.0.en.html) 7 | 8 | ## NOTICE: Notepad++ 8.0 comes with support for the dark mode 9 | 10 | Currently plugin is mainly used for testing mica effects. 11 | 12 | * * * 13 | 14 | [Notepad++](https://github.com/notepad-plus-plus/notepad-plus-plus) plugin that allows to use partially dark mode on Notepad++. 15 | Currently support: main title bar, some tooltips, some scroll bars and context menus. 16 | 17 | On Windows 11 allow to use mica effect on main window. 18 | 19 | This is mainly for testing purposes. 20 | 21 | * * * 22 | 23 |

24 | 25 | 26 | 27 |

28 | 29 | * * * 30 | 31 | ## Options 32 | 33 | - **useDark** - Option to choose mode. 34 | 35 | - Value **0** - use light mode. 36 | - Value **1** - use dark mode, default value. 37 | 38 | - **micaType** - Option to apply mica material or other effects on main window. It is recommended to use `useDark=1` for mica materials. 39 | 40 | - Value **0** - let system choose mica material and use it only on title bar, default value. 41 | - Value **1** - don't use mica material. 42 | - Value **2** - mica material. 43 | - Value **3** - mica acrylic material. 44 | - Value **4** - mica alternative material, found in tabbed applications. 45 | - Value **5** - acrylic effect, undocumented, works in Windows 10, but can cause lag while dragging or resizing window. 46 | 47 | > [!IMPORTANT] 48 | > `micaType` with other value than `0` should not be used with HDR and ACM (Auto Color Management). 49 | > Due to Windows bug using `micaType` with other value than `0` and/or with `useDark=0` can cause visual glitches, with HDR/ACM visual glitches are more severe (e.g. invisible controls). 50 | > It is also recommended when using with `micaType=1` to turn off Settings -> Personalization > Colors -> "Show accent color on title bars and window borders" setting. 51 | 52 | * * * 53 | 54 | ## Configs 55 | 56 | - **Default:** Dark mode with no Mica 57 | 58 | ```ini 59 | [DarkNpp] 60 | useDark=1 61 | micaType=0 62 | ``` 63 | -------------------------------------------------------------------------------- /Plugin/PluginDefinition.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2020-2025 oZone10 3 | This program is free software: you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation, either version 3 of the License, or 6 | (at your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | 13 | You should have received a copy of the GNU General Public License 14 | along with this program. If not, see . 15 | */ 16 | 17 | #pragma once 18 | 19 | #include "StdAfx.h" 20 | 21 | constexpr DWORD VER_1809 = 17763; // Windows 10 1809 (October 2018 Update) 22 | constexpr DWORD VER_1903 = 18362; // Windows 10 1903 (May 2019 Update) 23 | 24 | constexpr DWORD WIN10_22H2 = 19045; // Windows 10 22H2 (Last) 25 | 26 | constexpr DWORD BUILD_WIN11 = 22000; // Windows 11 first "stable" build 27 | constexpr DWORD BUILD_22H2 = 22621; // Windows 11 22H2 first to support mica properly 28 | 29 | constexpr uint32_t DWMWA_MICA_EFFECT = 1029; // Windows 11 Mica undocumented for build 22000 30 | 31 | enum class PreferredAppMode { 32 | Default, 33 | AllowDark, 34 | ForceDark, 35 | ForceLight, 36 | Max 37 | }; 38 | 39 | enum WINDOWCOMPOSITIONATTRIB 40 | { 41 | WCA_UNDEFINED = 0, 42 | WCA_NCRENDERING_ENABLED = 1, 43 | WCA_NCRENDERING_POLICY = 2, 44 | WCA_TRANSITIONS_FORCEDISABLED = 3, 45 | WCA_ALLOW_NCPAINT = 4, 46 | WCA_CAPTION_BUTTON_BOUNDS = 5, 47 | WCA_NONCLIENT_RTL_LAYOUT = 6, 48 | WCA_FORCE_ICONIC_REPRESENTATION = 7, 49 | WCA_EXTENDED_FRAME_BOUNDS = 8, 50 | WCA_HAS_ICONIC_BITMAP = 9, 51 | WCA_THEME_ATTRIBUTES = 10, 52 | WCA_NCRENDERING_EXILED = 11, 53 | WCA_NCADORNMENTINFO = 12, 54 | WCA_EXCLUDED_FROM_LIVEPREVIEW = 13, 55 | WCA_VIDEO_OVERLAY_ACTIVE = 14, 56 | WCA_FORCE_ACTIVEWINDOW_APPEARANCE = 15, 57 | WCA_DISALLOW_PEEK = 16, 58 | WCA_CLOAK = 17, 59 | WCA_CLOAKED = 18, 60 | WCA_ACCENT_POLICY = 19, 61 | WCA_FREEZE_REPRESENTATION = 20, 62 | WCA_EVER_UNCLOAKED = 21, 63 | WCA_VISUAL_OWNER = 22, 64 | WCA_HOLOGRAPHIC = 23, 65 | WCA_EXCLUDED_FROM_DDA = 24, 66 | WCA_PASSIVEUPDATEMODE = 25, 67 | WCA_USEDARKMODECOLORS = 26, 68 | WCA_LAST = 27 69 | }; 70 | 71 | struct WINDOWCOMPOSITIONATTRIBDATA 72 | { 73 | WINDOWCOMPOSITIONATTRIB Attrib; 74 | PVOID pvData; 75 | SIZE_T cbData; 76 | }; 77 | 78 | enum AccentTypes : int { 79 | ACCENT_DISABLED = 0, 80 | ACCENT_ENABLE_GRADIENT = 1, 81 | ACCENT_ENABLE_TRANSPARENTGRADIENT = 2, 82 | ACCENT_ENABLE_BLURBEHIND = 3, 83 | ACCENT_ENABLE_ACRYLICBLURBEHIND = 4, 84 | ACCENT_ENABLE_HOSTBACKDROP = 5, 85 | ACCENT_ENABLE_TRANSPARENT = 6 86 | }; 87 | 88 | struct ACCENTPOLICY { 89 | AccentTypes nAccentState = AccentTypes::ACCENT_DISABLED; 90 | int32_t nFlags = 0; 91 | uint32_t nColor = 0; 92 | int32_t nAnimationId = 0; 93 | }; 94 | 95 | using SWCA = bool (WINAPI*)(HWND hWnd, WINDOWCOMPOSITIONATTRIBDATA* wcaData); 96 | 97 | const wchar_t NPP_PLUGIN_NAME[] = L"DarkNpp"; 98 | constexpr int nbFunc = 11; 99 | 100 | void PluginInit(); 101 | void CommandMenuInit(); 102 | 103 | void LoadSettings(); 104 | void SavePluginParams(); 105 | void DarkCheckTag(); 106 | void SetMicaTagAuto(); 107 | void SetMicaTagNone(); 108 | void SetMicaTagMica(); 109 | void SetMicaTagAcrylic(); 110 | void SetMicaTagTabbed(); 111 | void SetTagAcrylic(); 112 | void MicaCheckTag(); 113 | void About(); 114 | 115 | bool IsAtLeastWin10Build(DWORD buildNumber); 116 | 117 | void SetMode(HMODULE hUxtheme); 118 | void SetTheme(HWND hWnd); 119 | void SetTitleBar(HWND hWnd); 120 | void SetTooltips(HWND hWnd); 121 | BOOL CALLBACK ScrollBarChildProc(HWND hWnd, LPARAM lparam); 122 | 123 | void SetMica(HWND hWnd); 124 | 125 | void SetDarkNpp(); 126 | void SetMicaNpp(); 127 | -------------------------------------------------------------------------------- /vs.proj/PluginDarkNpp.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Debug 7 | Win32 8 | 9 | 10 | Debug 11 | x64 12 | 13 | 14 | Release 15 | Win32 16 | 17 | 18 | Release 19 | x64 20 | 21 | 22 | ReleaseMD 23 | Win32 24 | 25 | 26 | ReleaseMD 27 | x64 28 | 29 | 30 | 31 | {9D04DBD5-E12E-44E0-A683-6F43F21D533B} 32 | Win32Proj 33 | DarkNpp 34 | DarkNpp 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | $(SolutionDir)Build\$(ProjectName)\$(PlatformTarget)-$(Configuration)\ 46 | $(SolutionDir)Build\$(ProjectName)\Obj\$(PlatformTarget)-$(Configuration)\ 47 | 48 | 49 | $(SolutionDir)Build\$(ProjectName)\$(PlatformTarget)-$(Configuration)\ 50 | $(SolutionDir)Build\$(ProjectName)\Obj\$(PlatformTarget)-$(Configuration)\ 51 | 52 | 53 | $(SolutionDir)Build\$(ProjectName)\$(PlatformTarget)-$(Configuration)\ 54 | $(SolutionDir)Build\$(ProjectName)\Obj\$(PlatformTarget)-$(Configuration)\ 55 | 56 | 57 | $(SolutionDir)Build\$(ProjectName)\$(PlatformTarget)-$(Configuration)\ 58 | $(SolutionDir)Build\$(ProjectName)\Obj\$(PlatformTarget)-$(Configuration)\ 59 | 60 | 61 | $(SolutionDir)Build\$(ProjectName)\$(PlatformTarget)-$(Configuration)\ 62 | $(SolutionDir)Build\$(ProjectName)\Obj\$(PlatformTarget)-$(Configuration)\ 63 | 64 | 65 | $(SolutionDir)Build\$(ProjectName)\$(PlatformTarget)-$(Configuration)\ 66 | $(SolutionDir)Build\$(ProjectName)\Obj\$(PlatformTarget)-$(Configuration)\ 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /VS/NppPlugin.Cpp.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | true 6 | 7 | 8 | false 9 | true 10 | false 11 | 12 | 13 | false 14 | true 15 | false 16 | 17 | 18 | 19 | 20 | %(AdditionalOptions) 21 | stdcpp20 22 | Level4 23 | true 24 | true 25 | WIN32;_WINDOWS;_USRDLL;STRICT_TYPED_ITEMIDS;NOMINMAX;WIN32_LEAN_AND_MEAN;VC_EXTRALEAN;SUPPORT_UTF8;NPPPLUGINTEMPLATE_EXPORTS;%(PreprocessorDefinitions);PROJECT_NAME="$(ProjectName)" 26 | NotUsing 27 | 28 | 29 | Windows 30 | $(OutDir)$(TargetName).pgd 31 | false 32 | /CETCOMPAT %(AdditionalOptions) 33 | dwmapi.lib;shlwapi.lib;uxtheme.lib;%(AdditionalDependencies) 34 | 35 | 36 | 0x0409 37 | 38 | 39 | RD /S /Q "$(OutDir)" 40 | 41 | 42 | 43 | 44 | 45 | Disabled 46 | MultiThreadedDebug 47 | _DEBUG;%(PreprocessorDefinitions)" 48 | EnableFastChecks 49 | 50 | 51 | DebugFastLink 52 | 53 | 54 | 55 | 56 | 57 | true 58 | NDEBUG;%(PreprocessorDefinitions)" 59 | MaxSpeed 60 | true 61 | true 62 | MultiThreaded 63 | Guard 64 | true 65 | Speed 66 | /Gw /Ob3 %(AdditionalOptions) 67 | true 68 | true 69 | 70 | 71 | UseLinkTimeCodeGeneration 72 | false 73 | true 74 | .rdata=.text 75 | true 76 | 77 | 78 | 79 | 80 | 81 | true 82 | NDEBUG;%(PreprocessorDefinitions)" 83 | MaxSpeed 84 | true 85 | true 86 | MultiThreadedDLL 87 | Guard 88 | true 89 | Speed 90 | /Gw /Ob3 %(AdditionalOptions) 91 | true 92 | true 93 | 94 | 95 | UseLinkTimeCodeGeneration 96 | false 97 | true 98 | .rdata=.text 99 | true 100 | 101 | 102 | 103 | 104 | 105 | %(AdditionalDependencies) 106 | 107 | 108 | MachineX86 109 | 110 | 111 | StreamingSIMDExtensions 112 | 113 | 114 | 115 | 116 | 117 | %(AdditionalDependencies) 118 | 119 | 120 | MachineX64 121 | 122 | 123 | _WIN64;%(PreprocessorDefinitions) 124 | 125 | 126 | 127 | 128 | 129 | NotUsing 130 | 131 | 132 | 133 | -------------------------------------------------------------------------------- /Plugin/PluginDefinition.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2020-2025 oZone10 3 | This program is free software: you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation, either version 3 of the License, or 6 | (at your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | 13 | You should have received a copy of the GNU General Public License 14 | along with this program. If not, see . 15 | */ 16 | 17 | #include "PluginDefinition.h" 18 | 19 | FuncItem funcItem[nbFunc]; 20 | NppData nppData; 21 | 22 | wchar_t iniFilePath[MAX_PATH] = { '\0' }; 23 | const wchar_t sectionName[] = L"DarkNpp"; 24 | 25 | static bool enableDark = false; 26 | 27 | static int micaType = 0; 28 | 29 | constexpr int menuItemEnableDark = 0; 30 | constexpr int menuItemMica = menuItemEnableDark + 3; 31 | constexpr int menuItemAbout = menuItemMica + 7; 32 | 33 | constexpr size_t classNameLenght = 64; 34 | 35 | void PluginInit() 36 | { 37 | LoadSettings(); 38 | CommandMenuInit(); 39 | SetDarkNpp(); 40 | SetMicaNpp(); 41 | } 42 | 43 | void CommandMenuInit() 44 | { 45 | funcItem[menuItemEnableDark + 0] = { L"Enable Dark Mode", DarkCheckTag, 0, enableDark, nullptr }; 46 | funcItem[menuItemEnableDark + 1] = { L"Refresh Dark Mode", SetDarkNpp, 0, false, nullptr }; 47 | funcItem[menuItemEnableDark + 2] = { L"---", nullptr, 0, false, nullptr }; 48 | funcItem[menuItemMica + 0] = { L"Auto", SetMicaTagAuto, 0, micaType == 0, nullptr }; 49 | funcItem[menuItemMica + 1] = { L"None", SetMicaTagNone, 0, micaType == 1, nullptr }; 50 | funcItem[menuItemMica + 2] = { L"Mica", SetMicaTagMica, 0, micaType == 2, nullptr }; 51 | funcItem[menuItemMica + 3] = { L"Mica Acrylic", SetMicaTagAcrylic, 0, micaType == 3, nullptr }; 52 | funcItem[menuItemMica + 4] = { L"Mica Alternative", SetMicaTagTabbed, 0, micaType == 4, nullptr }; 53 | funcItem[menuItemMica + 5] = { L"Acrylic", SetTagAcrylic, 0, micaType == 5, nullptr }; 54 | funcItem[menuItemMica + 6] = { L"---", nullptr, 0, false, nullptr }; 55 | funcItem[menuItemAbout] = { L"&About...", About, 0, false, nullptr }; 56 | } 57 | 58 | void LoadSettings() 59 | { 60 | ::SendMessage(nppData._nppHandle, NPPM_GETPLUGINSCONFIGDIR, MAX_PATH, reinterpret_cast(iniFilePath)); 61 | ::PathAppend(iniFilePath, L"\\DarkNpp.ini"); 62 | 63 | enableDark = ::GetPrivateProfileInt(sectionName, L"useDark", 1, iniFilePath) != 0; 64 | 65 | micaType = ::GetPrivateProfileInt(sectionName, L"micaType", 0, iniFilePath); 66 | } 67 | 68 | void SavePluginParams() 69 | { 70 | funcItem[menuItemEnableDark]._init2Check = enableDark; 71 | ::WritePrivateProfileString(sectionName, L"useDark", enableDark ? L"1" : L"0", iniFilePath); 72 | for (int i = 0; i < 6; i++) 73 | { 74 | funcItem[menuItemMica + i]._init2Check = (micaType == i); 75 | } 76 | ::WritePrivateProfileString(sectionName, L"micaType", std::to_wstring(micaType).c_str(), iniFilePath); 77 | } 78 | 79 | void DarkCheckTag() 80 | { 81 | enableDark = !enableDark; 82 | ::CheckMenuItem(::GetMenu(nppData._nppHandle), funcItem[menuItemEnableDark]._cmdID, MF_BYCOMMAND | (enableDark ? MF_CHECKED : MF_UNCHECKED)); 83 | SetDarkNpp(); 84 | SavePluginParams(); 85 | } 86 | 87 | void SetMicaTagAuto() 88 | { 89 | micaType = 0; 90 | MicaCheckTag(); 91 | } 92 | 93 | void SetMicaTagNone() 94 | { 95 | micaType = 1; 96 | MicaCheckTag(); 97 | } 98 | 99 | void SetMicaTagMica() 100 | { 101 | micaType = 2; 102 | MicaCheckTag(); 103 | } 104 | 105 | void SetMicaTagAcrylic() 106 | { 107 | micaType = 3; 108 | MicaCheckTag(); 109 | } 110 | 111 | void SetMicaTagTabbed() 112 | { 113 | micaType = 4; 114 | MicaCheckTag(); 115 | } 116 | 117 | void SetTagAcrylic() 118 | { 119 | micaType = 5; 120 | MicaCheckTag(); 121 | } 122 | 123 | void MicaCheckTag() 124 | { 125 | const auto hMenu = ::GetMenu(nppData._nppHandle); 126 | 127 | for (int i = 0; i < 6; i++) 128 | { 129 | ::CheckMenuItem(hMenu, funcItem[menuItemMica + i]._cmdID, MF_BYCOMMAND | (micaType == i ? MF_CHECKED : MF_UNCHECKED)); 130 | } 131 | 132 | SetMicaNpp(); 133 | SavePluginParams(); 134 | } 135 | 136 | void About() 137 | { 138 | ::MessageBox( 139 | NULL, 140 | L"This is Dark mode & Mica effects Notepad++ test.\n" 141 | L"Plugin is using undocumented WINAPI.\n" 142 | L"@2020-2025 by oZone10", 143 | L"About", 144 | MB_OK); 145 | } 146 | 147 | bool IsAtLeastWin10Build(DWORD buildNumber) 148 | { 149 | if (!::IsWindows10OrGreater()) 150 | { 151 | return false; 152 | } 153 | 154 | const auto mask = ::VerSetConditionMask(0, VER_BUILDNUMBER, VER_GREATER_EQUAL); 155 | 156 | OSVERSIONINFOEXW osvi{}; 157 | osvi.dwOSVersionInfoSize = sizeof(osvi); 158 | osvi.dwBuildNumber = buildNumber; 159 | return VerifyVersionInfo(&osvi, VER_BUILDNUMBER, mask) != FALSE; 160 | } 161 | 162 | void SetMode(HMODULE hUxtheme) 163 | { 164 | const auto ord135 = ::GetProcAddress(hUxtheme, MAKEINTRESOURCEA(135)); 165 | 166 | if (IsAtLeastWin10Build(VER_1903)) 167 | { 168 | using SPAM = PreferredAppMode(WINAPI*)(PreferredAppMode appMode); 169 | const auto _SetPreferredAppMode = reinterpret_cast(ord135); 170 | 171 | auto appMode = enableDark ? PreferredAppMode::ForceDark : PreferredAppMode::ForceLight; 172 | 173 | if (_SetPreferredAppMode != nullptr) 174 | { 175 | _SetPreferredAppMode(appMode); 176 | } 177 | } 178 | else 179 | { 180 | using ADMFA = bool (WINAPI*)(bool allow); 181 | const auto _AllowDarkModeForApp = reinterpret_cast(ord135); 182 | 183 | if (_AllowDarkModeForApp != nullptr) 184 | { 185 | _AllowDarkModeForApp(true); 186 | } 187 | } 188 | } 189 | 190 | void SetTheme(HWND hWnd) 191 | { 192 | const auto hUxtheme = LoadLibraryEx(L"uxtheme.dll", nullptr, LOAD_LIBRARY_SEARCH_SYSTEM32); 193 | 194 | if (hUxtheme == nullptr) 195 | { 196 | return; 197 | } 198 | 199 | using ADMFW = bool (WINAPI*)(HWND, bool); 200 | using FMT = void (WINAPI*)(); 201 | 202 | const auto _AllowDarkModeForWindow = reinterpret_cast(::GetProcAddress(hUxtheme, MAKEINTRESOURCEA(133))); 203 | const auto _FlushMenuThemes = reinterpret_cast(::GetProcAddress(hUxtheme, MAKEINTRESOURCEA(136))); 204 | 205 | if (_AllowDarkModeForWindow != nullptr && _FlushMenuThemes != nullptr) 206 | { 207 | _AllowDarkModeForWindow(hWnd, enableDark); 208 | SetMode(hUxtheme); 209 | _FlushMenuThemes(); 210 | } 211 | 212 | ::FreeLibrary(hUxtheme); 213 | } 214 | 215 | void SetTitleBar(HWND hWnd) 216 | { 217 | BOOL dark = enableDark ? TRUE : FALSE; 218 | 219 | if (IsAtLeastWin10Build(BUILD_WIN11)) 220 | { 221 | ::DwmSetWindowAttribute(hWnd, DWMWA_USE_IMMERSIVE_DARK_MODE, &dark, sizeof(dark)); 222 | } 223 | else if (IsAtLeastWin10Build(VER_1903)) 224 | { 225 | const auto hUser32 = ::LoadLibraryEx(L"user32.dll", nullptr, LOAD_LIBRARY_SEARCH_SYSTEM32); 226 | if (hUser32) 227 | { 228 | const auto _SetWindowCompositionAttribute = reinterpret_cast(::GetProcAddress(hUser32, "SetWindowCompositionAttribute")); 229 | 230 | if (_SetWindowCompositionAttribute != nullptr) 231 | { 232 | WINDOWCOMPOSITIONATTRIBDATA data = { WCA_USEDARKMODECOLORS, &dark, sizeof(dark) }; 233 | 234 | if (_SetWindowCompositionAttribute(hWnd, &data)) 235 | { 236 | ::FreeLibrary(hUser32); 237 | return; 238 | } 239 | } 240 | 241 | ::FreeLibrary(hUser32); 242 | } 243 | } 244 | else if (IsAtLeastWin10Build(VER_1809)) 245 | { 246 | ::SetProp(hWnd, L"UseImmersiveDarkModeColors", reinterpret_cast(static_cast(dark))); 247 | } 248 | } 249 | 250 | void SetTooltips(HWND hWnd) 251 | { 252 | DWORD processID = 0; 253 | ::GetWindowThreadProcessId(hWnd, &processID); 254 | HWND hTooltip = nullptr; 255 | LPCWSTR themeName = enableDark ? L"DarkMode_Explorer" : nullptr; 256 | do { 257 | hTooltip = ::FindWindowEx(nullptr, hTooltip, nullptr, nullptr); 258 | DWORD checkProcessID = 0; 259 | ::GetWindowThreadProcessId(hTooltip, &checkProcessID); 260 | 261 | if (checkProcessID == processID) 262 | { 263 | WCHAR className[classNameLenght] = { '\0' }; 264 | 265 | if (GetClassName(hTooltip, className, classNameLenght) > 0) 266 | { 267 | if (wcscmp(className, TOOLTIPS_CLASS) == 0) 268 | { 269 | ::SetWindowTheme(hTooltip, themeName, nullptr); 270 | } 271 | else if (wcscmp(className, TOOLBARCLASSNAME) == 0) 272 | { 273 | const auto hTip = reinterpret_cast(::SendMessage(hTooltip, TB_GETTOOLTIPS, 0, 0)); 274 | if (hTip != nullptr) 275 | { 276 | ::SetWindowTheme(hTip, themeName, nullptr); 277 | } 278 | } 279 | else if (wcscmp(className, WC_TREEVIEW) == 0) 280 | { 281 | const auto hTip = TreeView_GetToolTips(hTooltip); 282 | if (hTip != nullptr) 283 | { 284 | ::SetWindowTheme(hTip, themeName, nullptr); 285 | } 286 | } 287 | else if (wcscmp(className, WC_LISTVIEW) == 0) 288 | { 289 | const auto hTip = ListView_GetToolTips(hTooltip); 290 | if (hTip != nullptr) 291 | { 292 | ::SetWindowTheme(hTip, themeName, nullptr); 293 | } 294 | } 295 | else if (wcscmp(className, WC_TABCONTROL) == 0) 296 | { 297 | const auto hTip = TabCtrl_GetToolTips(hTooltip); 298 | if (hTip != nullptr) 299 | { 300 | ::SetWindowTheme(hTip, themeName, nullptr); 301 | } 302 | } 303 | } 304 | } 305 | } while (hTooltip != nullptr); 306 | } 307 | 308 | BOOL CALLBACK ScrollBarChildProc(HWND hWnd, LPARAM lparam) 309 | { 310 | const auto dwStyle = ::GetWindowLongPtr(hWnd, GWL_STYLE); 311 | if ((dwStyle & (WS_CHILD | WS_VSCROLL)) > 0x0L) 312 | { 313 | wchar_t className[classNameLenght] = { '\0' }; 314 | if (GetClassName(hWnd, className, classNameLenght) > 0) 315 | { 316 | if ((wcscmp(className, WC_TREEVIEW) == 0) || 317 | (wcscmp(className, WC_LISTVIEW) == 0) || 318 | (wcscmp(className, WC_HEADER) == 0)) 319 | { 320 | return TRUE; 321 | } 322 | } 323 | ::SetWindowTheme(hWnd, reinterpret_cast(lparam), nullptr); 324 | } 325 | 326 | return TRUE; 327 | } 328 | 329 | void SetMica(HWND hWnd) 330 | { 331 | if (IsAtLeastWin10Build(WIN10_22H2)) 332 | { 333 | const auto hUser32 = ::LoadLibraryEx(L"user32.dll", nullptr, LOAD_LIBRARY_SEARCH_SYSTEM32); 334 | if (hUser32) 335 | { 336 | const auto _SetWindowCompositionAttribute = reinterpret_cast(::GetProcAddress(hUser32, "SetWindowCompositionAttribute")); 337 | 338 | if (_SetWindowCompositionAttribute != nullptr) 339 | { 340 | ACCENTPOLICY policy = { (micaType == 5) ? ACCENT_ENABLE_ACRYLICBLURBEHIND : ACCENT_DISABLED, 2, 0x01101010, 0 }; 341 | WINDOWCOMPOSITIONATTRIBDATA data = { WCA_ACCENT_POLICY, &policy, sizeof(ACCENTPOLICY) }; 342 | _SetWindowCompositionAttribute(hWnd, &data); 343 | } 344 | ::FreeLibrary(hUser32); 345 | } 346 | } 347 | 348 | constexpr MARGINS marginsExtended = { -1 }; 349 | constexpr MARGINS marginsReset{}; 350 | 351 | if (IsAtLeastWin10Build(BUILD_22H2)) 352 | { 353 | auto mica = DWMSBT_AUTO; 354 | switch (micaType) 355 | { 356 | case 1: 357 | { 358 | mica = DWMSBT_NONE; 359 | } 360 | break; 361 | 362 | case 2: 363 | { 364 | mica = DWMSBT_MAINWINDOW; 365 | } 366 | break; 367 | 368 | case 3: 369 | { 370 | mica = DWMSBT_TRANSIENTWINDOW; 371 | } 372 | break; 373 | 374 | case 4: 375 | { 376 | mica = DWMSBT_TABBEDWINDOW; 377 | } 378 | break; 379 | 380 | default: 381 | { 382 | mica = DWMSBT_AUTO; 383 | } 384 | } 385 | 386 | ::DwmExtendFrameIntoClientArea(hWnd, (mica != DWMSBT_AUTO) ? &marginsExtended : &marginsReset); 387 | ::DwmSetWindowAttribute(hWnd, DWMWA_SYSTEMBACKDROP_TYPE, &mica, sizeof(mica)); 388 | } 389 | else if (IsAtLeastWin10Build(BUILD_WIN11)) 390 | { 391 | const BOOL useMica = (micaType == 0); 392 | ::DwmExtendFrameIntoClientArea(hWnd, (micaType != 0) ? &marginsExtended : &marginsReset); 393 | ::DwmSetWindowAttribute(hWnd, DWMWA_MICA_EFFECT, &useMica, sizeof(useMica)); 394 | } 395 | else 396 | { 397 | ::DwmExtendFrameIntoClientArea(hWnd, &marginsReset); 398 | } 399 | } 400 | 401 | void SetDarkNpp() 402 | { 403 | HWND hwnd = nppData._nppHandle; 404 | SetTheme(hwnd); 405 | SetTitleBar(hwnd); 406 | SetTooltips(hwnd); 407 | 408 | ::EnumChildWindows(hwnd, &ScrollBarChildProc, reinterpret_cast(enableDark ? L"DarkMode_Explorer" : nullptr)); 409 | 410 | SetMica(hwnd); 411 | } 412 | 413 | void SetMicaNpp() 414 | { 415 | HWND hwnd = nppData._nppHandle; 416 | SetMica(hwnd); 417 | } 418 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | ### GNU GENERAL PUBLIC LICENSE 2 | 3 | Version 3, 29 June 2007 4 | 5 | Copyright (C) 2007 Free Software Foundation, Inc. 6 | 7 | 8 | Everyone is permitted to copy and distribute verbatim copies of this 9 | license document, but changing it is not allowed. 10 | 11 | ### Preamble 12 | 13 | The GNU General Public License is a free, copyleft license for 14 | software and other kinds of works. 15 | 16 | The licenses for most software and other practical works are designed 17 | to take away your freedom to share and change the works. By contrast, 18 | the GNU General Public License is intended to guarantee your freedom 19 | to share and change all versions of a program--to make sure it remains 20 | free software for all its users. We, the Free Software Foundation, use 21 | the GNU General Public License for most of our software; it applies 22 | also to any other work released this way by its authors. You can apply 23 | it to your programs, too. 24 | 25 | When we speak of free software, we are referring to freedom, not 26 | price. Our General Public Licenses are designed to make sure that you 27 | have the freedom to distribute copies of free software (and charge for 28 | them if you wish), that you receive source code or can get it if you 29 | want it, that you can change the software or use pieces of it in new 30 | free programs, and that you know you can do these things. 31 | 32 | To protect your rights, we need to prevent others from denying you 33 | these rights or asking you to surrender the rights. Therefore, you 34 | have certain responsibilities if you distribute copies of the 35 | software, or if you modify it: responsibilities to respect the freedom 36 | of others. 37 | 38 | For example, if you distribute copies of such a program, whether 39 | gratis or for a fee, you must pass on to the recipients the same 40 | freedoms that you received. You must make sure that they, too, receive 41 | or can get the source code. And you must show them these terms so they 42 | know their rights. 43 | 44 | Developers that use the GNU GPL protect your rights with two steps: 45 | (1) assert copyright on the software, and (2) offer you this License 46 | giving you legal permission to copy, distribute and/or modify it. 47 | 48 | For the developers' and authors' protection, the GPL clearly explains 49 | that there is no warranty for this free software. For both users' and 50 | authors' sake, the GPL requires that modified versions be marked as 51 | changed, so that their problems will not be attributed erroneously to 52 | authors of previous versions. 53 | 54 | Some devices are designed to deny users access to install or run 55 | modified versions of the software inside them, although the 56 | manufacturer can do so. This is fundamentally incompatible with the 57 | aim of protecting users' freedom to change the software. The 58 | systematic pattern of such abuse occurs in the area of products for 59 | individuals to use, which is precisely where it is most unacceptable. 60 | Therefore, we have designed this version of the GPL to prohibit the 61 | practice for those products. If such problems arise substantially in 62 | other domains, we stand ready to extend this provision to those 63 | domains in future versions of the GPL, as needed to protect the 64 | freedom of users. 65 | 66 | Finally, every program is threatened constantly by software patents. 67 | States should not allow patents to restrict development and use of 68 | software on general-purpose computers, but in those that do, we wish 69 | to avoid the special danger that patents applied to a free program 70 | could make it effectively proprietary. To prevent this, the GPL 71 | assures that patents cannot be used to render the program non-free. 72 | 73 | The precise terms and conditions for copying, distribution and 74 | modification follow. 75 | 76 | ### TERMS AND CONDITIONS 77 | 78 | #### 0. Definitions 79 | 80 | "This License" refers to version 3 of the GNU General Public License. 81 | 82 | "Copyright" also means copyright-like laws that apply to other kinds 83 | of works, such as semiconductor masks. 84 | 85 | "The Program" refers to any copyrightable work licensed under this 86 | License. Each licensee is addressed as "you". "Licensees" and 87 | "recipients" may be individuals or organizations. 88 | 89 | To "modify" a work means to copy from or adapt all or part of the work 90 | in a fashion requiring copyright permission, other than the making of 91 | an exact copy. The resulting work is called a "modified version" of 92 | the earlier work or a work "based on" the earlier work. 93 | 94 | A "covered work" means either the unmodified Program or a work based 95 | on the Program. 96 | 97 | To "propagate" a work means to do anything with it that, without 98 | permission, would make you directly or secondarily liable for 99 | infringement under applicable copyright law, except executing it on a 100 | computer or modifying a private copy. Propagation includes copying, 101 | distribution (with or without modification), making available to the 102 | public, and in some countries other activities as well. 103 | 104 | To "convey" a work means any kind of propagation that enables other 105 | parties to make or receive copies. Mere interaction with a user 106 | through a computer network, with no transfer of a copy, is not 107 | conveying. 108 | 109 | An interactive user interface displays "Appropriate Legal Notices" to 110 | the extent that it includes a convenient and prominently visible 111 | feature that (1) displays an appropriate copyright notice, and (2) 112 | tells the user that there is no warranty for the work (except to the 113 | extent that warranties are provided), that licensees may convey the 114 | work under this License, and how to view a copy of this License. If 115 | the interface presents a list of user commands or options, such as a 116 | menu, a prominent item in the list meets this criterion. 117 | 118 | #### 1. Source Code 119 | 120 | The "source code" for a work means the preferred form of the work for 121 | making modifications to it. "Object code" means any non-source form of 122 | a work. 123 | 124 | A "Standard Interface" means an interface that either is an official 125 | standard defined by a recognized standards body, or, in the case of 126 | interfaces specified for a particular programming language, one that 127 | is widely used among developers working in that language. 128 | 129 | The "System Libraries" of an executable work include anything, other 130 | than the work as a whole, that (a) is included in the normal form of 131 | packaging a Major Component, but which is not part of that Major 132 | Component, and (b) serves only to enable use of the work with that 133 | Major Component, or to implement a Standard Interface for which an 134 | implementation is available to the public in source code form. A 135 | "Major Component", in this context, means a major essential component 136 | (kernel, window system, and so on) of the specific operating system 137 | (if any) on which the executable work runs, or a compiler used to 138 | produce the work, or an object code interpreter used to run it. 139 | 140 | The "Corresponding Source" for a work in object code form means all 141 | the source code needed to generate, install, and (for an executable 142 | work) run the object code and to modify the work, including scripts to 143 | control those activities. However, it does not include the work's 144 | System Libraries, or general-purpose tools or generally available free 145 | programs which are used unmodified in performing those activities but 146 | which are not part of the work. For example, Corresponding Source 147 | includes interface definition files associated with source files for 148 | the work, and the source code for shared libraries and dynamically 149 | linked subprograms that the work is specifically designed to require, 150 | such as by intimate data communication or control flow between those 151 | subprograms and other parts of the work. 152 | 153 | The Corresponding Source need not include anything that users can 154 | regenerate automatically from other parts of the Corresponding Source. 155 | 156 | The Corresponding Source for a work in source code form is that same 157 | work. 158 | 159 | #### 2. Basic Permissions 160 | 161 | All rights granted under this License are granted for the term of 162 | copyright on the Program, and are irrevocable provided the stated 163 | conditions are met. This License explicitly affirms your unlimited 164 | permission to run the unmodified Program. The output from running a 165 | covered work is covered by this License only if the output, given its 166 | content, constitutes a covered work. This License acknowledges your 167 | rights of fair use or other equivalent, as provided by copyright law. 168 | 169 | You may make, run and propagate covered works that you do not convey, 170 | without conditions so long as your license otherwise remains in force. 171 | You may convey covered works to others for the sole purpose of having 172 | them make modifications exclusively for you, or provide you with 173 | facilities for running those works, provided that you comply with the 174 | terms of this License in conveying all material for which you do not 175 | control copyright. Those thus making or running the covered works for 176 | you must do so exclusively on your behalf, under your direction and 177 | control, on terms that prohibit them from making any copies of your 178 | copyrighted material outside their relationship with you. 179 | 180 | Conveying under any other circumstances is permitted solely under the 181 | conditions stated below. Sublicensing is not allowed; section 10 makes 182 | it unnecessary. 183 | 184 | #### 3. Protecting Users' Legal Rights From Anti-Circumvention Law 185 | 186 | No covered work shall be deemed part of an effective technological 187 | measure under any applicable law fulfilling obligations under article 188 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 189 | similar laws prohibiting or restricting circumvention of such 190 | measures. 191 | 192 | When you convey a covered work, you waive any legal power to forbid 193 | circumvention of technological measures to the extent such 194 | circumvention is effected by exercising rights under this License with 195 | respect to the covered work, and you disclaim any intention to limit 196 | operation or modification of the work as a means of enforcing, against 197 | the work's users, your or third parties' legal rights to forbid 198 | circumvention of technological measures. 199 | 200 | #### 4. Conveying Verbatim Copies 201 | 202 | You may convey verbatim copies of the Program's source code as you 203 | receive it, in any medium, provided that you conspicuously and 204 | appropriately publish on each copy an appropriate copyright notice; 205 | keep intact all notices stating that this License and any 206 | non-permissive terms added in accord with section 7 apply to the code; 207 | keep intact all notices of the absence of any warranty; and give all 208 | recipients a copy of this License along with the Program. 209 | 210 | You may charge any price or no price for each copy that you convey, 211 | and you may offer support or warranty protection for a fee. 212 | 213 | #### 5. Conveying Modified Source Versions 214 | 215 | You may convey a work based on the Program, or the modifications to 216 | produce it from the Program, in the form of source code under the 217 | terms of section 4, provided that you also meet all of these 218 | conditions: 219 | 220 | - a) The work must carry prominent notices stating that you modified 221 | it, and giving a relevant date. 222 | 223 | - b) The work must carry prominent notices stating that it is 224 | released under this License and any conditions added under 225 | section 7. This requirement modifies the requirement in section 4 226 | to "keep intact all notices". 227 | 228 | - c) You must license the entire work, as a whole, under this 229 | License to anyone who comes into possession of a copy. This 230 | License will therefore apply, along with any applicable section 7 231 | additional terms, to the whole of the work, and all its parts, 232 | regardless of how they are packaged. This License gives no 233 | permission to license the work in any other way, but it does not 234 | invalidate such permission if you have separately received it. 235 | 236 | - d) If the work has interactive user interfaces, each must display 237 | Appropriate Legal Notices; however, if the Program has interactive 238 | interfaces that do not display Appropriate Legal Notices, your 239 | work need not make them do so. 240 | 241 | A compilation of a covered work with other separate and independent 242 | works, which are not by their nature extensions of the covered work, 243 | and which are not combined with it such as to form a larger program, 244 | in or on a volume of a storage or distribution medium, is called an 245 | "aggregate" if the compilation and its resulting copyright are not 246 | used to limit the access or legal rights of the compilation's users 247 | beyond what the individual works permit. Inclusion of a covered work 248 | in an aggregate does not cause this License to apply to the other 249 | parts of the aggregate. 250 | 251 | #### 6. Conveying Non-Source Forms 252 | 253 | You may convey a covered work in object code form under the terms of 254 | sections 4 and 5, provided that you also convey the machine-readable 255 | Corresponding Source under the terms of this License, in one of these 256 | ways: 257 | 258 | - a) Convey the object code in, or embodied in, a physical product 259 | (including a physical distribution medium), accompanied by the 260 | Corresponding Source fixed on a durable physical medium 261 | customarily used for software interchange. 262 | 263 | - b) Convey the object code in, or embodied in, a physical product 264 | (including a physical distribution medium), accompanied by a 265 | written offer, valid for at least three years and valid for as 266 | long as you offer spare parts or customer support for that product 267 | model, to give anyone who possesses the object code either (1) a 268 | copy of the Corresponding Source for all the software in the 269 | product that is covered by this License, on a durable physical 270 | medium customarily used for software interchange, for a price no 271 | more than your reasonable cost of physically performing this 272 | conveying of source, or (2) access to copy the Corresponding 273 | Source from a network server at no charge. 274 | 275 | - c) Convey individual copies of the object code with a copy of the 276 | written offer to provide the Corresponding Source. This 277 | alternative is allowed only occasionally and noncommercially, and 278 | only if you received the object code with such an offer, in accord 279 | with subsection 6b. 280 | 281 | - d) Convey the object code by offering access from a designated 282 | place (gratis or for a charge), and offer equivalent access to the 283 | Corresponding Source in the same way through the same place at no 284 | further charge. You need not require recipients to copy the 285 | Corresponding Source along with the object code. If the place to 286 | copy the object code is a network server, the Corresponding Source 287 | may be on a different server (operated by you or a third party) 288 | that supports equivalent copying facilities, provided you maintain 289 | clear directions next to the object code saying where to find the 290 | Corresponding Source. Regardless of what server hosts the 291 | Corresponding Source, you remain obligated to ensure that it is 292 | available for as long as needed to satisfy these requirements. 293 | 294 | - e) Convey the object code using peer-to-peer transmission, 295 | provided you inform other peers where the object code and 296 | Corresponding Source of the work are being offered to the general 297 | public at no charge under subsection 6d. 298 | 299 | A separable portion of the object code, whose source code is excluded 300 | from the Corresponding Source as a System Library, need not be 301 | included in conveying the object code work. 302 | 303 | A "User Product" is either (1) a "consumer product", which means any 304 | tangible personal property which is normally used for personal, 305 | family, or household purposes, or (2) anything designed or sold for 306 | incorporation into a dwelling. In determining whether a product is a 307 | consumer product, doubtful cases shall be resolved in favor of 308 | coverage. For a particular product received by a particular user, 309 | "normally used" refers to a typical or common use of that class of 310 | product, regardless of the status of the particular user or of the way 311 | in which the particular user actually uses, or expects or is expected 312 | to use, the product. A product is a consumer product regardless of 313 | whether the product has substantial commercial, industrial or 314 | non-consumer uses, unless such uses represent the only significant 315 | mode of use of the product. 316 | 317 | "Installation Information" for a User Product means any methods, 318 | procedures, authorization keys, or other information required to 319 | install and execute modified versions of a covered work in that User 320 | Product from a modified version of its Corresponding Source. The 321 | information must suffice to ensure that the continued functioning of 322 | the modified object code is in no case prevented or interfered with 323 | solely because modification has been made. 324 | 325 | If you convey an object code work under this section in, or with, or 326 | specifically for use in, a User Product, and the conveying occurs as 327 | part of a transaction in which the right of possession and use of the 328 | User Product is transferred to the recipient in perpetuity or for a 329 | fixed term (regardless of how the transaction is characterized), the 330 | Corresponding Source conveyed under this section must be accompanied 331 | by the Installation Information. But this requirement does not apply 332 | if neither you nor any third party retains the ability to install 333 | modified object code on the User Product (for example, the work has 334 | been installed in ROM). 335 | 336 | The requirement to provide Installation Information does not include a 337 | requirement to continue to provide support service, warranty, or 338 | updates for a work that has been modified or installed by the 339 | recipient, or for the User Product in which it has been modified or 340 | installed. Access to a network may be denied when the modification 341 | itself materially and adversely affects the operation of the network 342 | or violates the rules and protocols for communication across the 343 | network. 344 | 345 | Corresponding Source conveyed, and Installation Information provided, 346 | in accord with this section must be in a format that is publicly 347 | documented (and with an implementation available to the public in 348 | source code form), and must require no special password or key for 349 | unpacking, reading or copying. 350 | 351 | #### 7. Additional Terms 352 | 353 | "Additional permissions" are terms that supplement the terms of this 354 | License by making exceptions from one or more of its conditions. 355 | Additional permissions that are applicable to the entire Program shall 356 | be treated as though they were included in this License, to the extent 357 | that they are valid under applicable law. If additional permissions 358 | apply only to part of the Program, that part may be used separately 359 | under those permissions, but the entire Program remains governed by 360 | this License without regard to the additional permissions. 361 | 362 | When you convey a copy of a covered work, you may at your option 363 | remove any additional permissions from that copy, or from any part of 364 | it. (Additional permissions may be written to require their own 365 | removal in certain cases when you modify the work.) You may place 366 | additional permissions on material, added by you to a covered work, 367 | for which you have or can give appropriate copyright permission. 368 | 369 | Notwithstanding any other provision of this License, for material you 370 | add to a covered work, you may (if authorized by the copyright holders 371 | of that material) supplement the terms of this License with terms: 372 | 373 | - a) Disclaiming warranty or limiting liability differently from the 374 | terms of sections 15 and 16 of this License; or 375 | 376 | - b) Requiring preservation of specified reasonable legal notices or 377 | author attributions in that material or in the Appropriate Legal 378 | Notices displayed by works containing it; or 379 | 380 | - c) Prohibiting misrepresentation of the origin of that material, 381 | or requiring that modified versions of such material be marked in 382 | reasonable ways as different from the original version; or 383 | 384 | - d) Limiting the use for publicity purposes of names of licensors 385 | or authors of the material; or 386 | 387 | - e) Declining to grant rights under trademark law for use of some 388 | trade names, trademarks, or service marks; or 389 | 390 | - f) Requiring indemnification of licensors and authors of that 391 | material by anyone who conveys the material (or modified versions 392 | of it) with contractual assumptions of liability to the recipient, 393 | for any liability that these contractual assumptions directly 394 | impose on those licensors and authors. 395 | 396 | All other non-permissive additional terms are considered "further 397 | restrictions" within the meaning of section 10. If the Program as you 398 | received it, or any part of it, contains a notice stating that it is 399 | governed by this License along with a term that is a further 400 | restriction, you may remove that term. If a license document contains 401 | a further restriction but permits relicensing or conveying under this 402 | License, you may add to a covered work material governed by the terms 403 | of that license document, provided that the further restriction does 404 | not survive such relicensing or conveying. 405 | 406 | If you add terms to a covered work in accord with this section, you 407 | must place, in the relevant source files, a statement of the 408 | additional terms that apply to those files, or a notice indicating 409 | where to find the applicable terms. 410 | 411 | Additional terms, permissive or non-permissive, may be stated in the 412 | form of a separately written license, or stated as exceptions; the 413 | above requirements apply either way. 414 | 415 | #### 8. Termination 416 | 417 | You may not propagate or modify a covered work except as expressly 418 | provided under this License. Any attempt otherwise to propagate or 419 | modify it is void, and will automatically terminate your rights under 420 | this License (including any patent licenses granted under the third 421 | paragraph of section 11). 422 | 423 | However, if you cease all violation of this License, then your license 424 | from a particular copyright holder is reinstated (a) provisionally, 425 | unless and until the copyright holder explicitly and finally 426 | terminates your license, and (b) permanently, if the copyright holder 427 | fails to notify you of the violation by some reasonable means prior to 428 | 60 days after the cessation. 429 | 430 | Moreover, your license from a particular copyright holder is 431 | reinstated permanently if the copyright holder notifies you of the 432 | violation by some reasonable means, this is the first time you have 433 | received notice of violation of this License (for any work) from that 434 | copyright holder, and you cure the violation prior to 30 days after 435 | your receipt of the notice. 436 | 437 | Termination of your rights under this section does not terminate the 438 | licenses of parties who have received copies or rights from you under 439 | this License. If your rights have been terminated and not permanently 440 | reinstated, you do not qualify to receive new licenses for the same 441 | material under section 10. 442 | 443 | #### 9. Acceptance Not Required for Having Copies 444 | 445 | You are not required to accept this License in order to receive or run 446 | a copy of the Program. Ancillary propagation of a covered work 447 | occurring solely as a consequence of using peer-to-peer transmission 448 | to receive a copy likewise does not require acceptance. However, 449 | nothing other than this License grants you permission to propagate or 450 | modify any covered work. These actions infringe copyright if you do 451 | not accept this License. Therefore, by modifying or propagating a 452 | covered work, you indicate your acceptance of this License to do so. 453 | 454 | #### 10. Automatic Licensing of Downstream Recipients 455 | 456 | Each time you convey a covered work, the recipient automatically 457 | receives a license from the original licensors, to run, modify and 458 | propagate that work, subject to this License. You are not responsible 459 | for enforcing compliance by third parties with this License. 460 | 461 | An "entity transaction" is a transaction transferring control of an 462 | organization, or substantially all assets of one, or subdividing an 463 | organization, or merging organizations. If propagation of a covered 464 | work results from an entity transaction, each party to that 465 | transaction who receives a copy of the work also receives whatever 466 | licenses to the work the party's predecessor in interest had or could 467 | give under the previous paragraph, plus a right to possession of the 468 | Corresponding Source of the work from the predecessor in interest, if 469 | the predecessor has it or can get it with reasonable efforts. 470 | 471 | You may not impose any further restrictions on the exercise of the 472 | rights granted or affirmed under this License. For example, you may 473 | not impose a license fee, royalty, or other charge for exercise of 474 | rights granted under this License, and you may not initiate litigation 475 | (including a cross-claim or counterclaim in a lawsuit) alleging that 476 | any patent claim is infringed by making, using, selling, offering for 477 | sale, or importing the Program or any portion of it. 478 | 479 | #### 11. Patents 480 | 481 | A "contributor" is a copyright holder who authorizes use under this 482 | License of the Program or a work on which the Program is based. The 483 | work thus licensed is called the contributor's "contributor version". 484 | 485 | A contributor's "essential patent claims" are all patent claims owned 486 | or controlled by the contributor, whether already acquired or 487 | hereafter acquired, that would be infringed by some manner, permitted 488 | by this License, of making, using, or selling its contributor version, 489 | but do not include claims that would be infringed only as a 490 | consequence of further modification of the contributor version. For 491 | purposes of this definition, "control" includes the right to grant 492 | patent sublicenses in a manner consistent with the requirements of 493 | this License. 494 | 495 | Each contributor grants you a non-exclusive, worldwide, royalty-free 496 | patent license under the contributor's essential patent claims, to 497 | make, use, sell, offer for sale, import and otherwise run, modify and 498 | propagate the contents of its contributor version. 499 | 500 | In the following three paragraphs, a "patent license" is any express 501 | agreement or commitment, however denominated, not to enforce a patent 502 | (such as an express permission to practice a patent or covenant not to 503 | sue for patent infringement). To "grant" such a patent license to a 504 | party means to make such an agreement or commitment not to enforce a 505 | patent against the party. 506 | 507 | If you convey a covered work, knowingly relying on a patent license, 508 | and the Corresponding Source of the work is not available for anyone 509 | to copy, free of charge and under the terms of this License, through a 510 | publicly available network server or other readily accessible means, 511 | then you must either (1) cause the Corresponding Source to be so 512 | available, or (2) arrange to deprive yourself of the benefit of the 513 | patent license for this particular work, or (3) arrange, in a manner 514 | consistent with the requirements of this License, to extend the patent 515 | license to downstream recipients. "Knowingly relying" means you have 516 | actual knowledge that, but for the patent license, your conveying the 517 | covered work in a country, or your recipient's use of the covered work 518 | in a country, would infringe one or more identifiable patents in that 519 | country that you have reason to believe are valid. 520 | 521 | If, pursuant to or in connection with a single transaction or 522 | arrangement, you convey, or propagate by procuring conveyance of, a 523 | covered work, and grant a patent license to some of the parties 524 | receiving the covered work authorizing them to use, propagate, modify 525 | or convey a specific copy of the covered work, then the patent license 526 | you grant is automatically extended to all recipients of the covered 527 | work and works based on it. 528 | 529 | A patent license is "discriminatory" if it does not include within the 530 | scope of its coverage, prohibits the exercise of, or is conditioned on 531 | the non-exercise of one or more of the rights that are specifically 532 | granted under this License. You may not convey a covered work if you 533 | are a party to an arrangement with a third party that is in the 534 | business of distributing software, under which you make payment to the 535 | third party based on the extent of your activity of conveying the 536 | work, and under which the third party grants, to any of the parties 537 | who would receive the covered work from you, a discriminatory patent 538 | license (a) in connection with copies of the covered work conveyed by 539 | you (or copies made from those copies), or (b) primarily for and in 540 | connection with specific products or compilations that contain the 541 | covered work, unless you entered into that arrangement, or that patent 542 | license was granted, prior to 28 March 2007. 543 | 544 | Nothing in this License shall be construed as excluding or limiting 545 | any implied license or other defenses to infringement that may 546 | otherwise be available to you under applicable patent law. 547 | 548 | #### 12. No Surrender of Others' Freedom 549 | 550 | If conditions are imposed on you (whether by court order, agreement or 551 | otherwise) that contradict the conditions of this License, they do not 552 | excuse you from the conditions of this License. If you cannot convey a 553 | covered work so as to satisfy simultaneously your obligations under 554 | this License and any other pertinent obligations, then as a 555 | consequence you may not convey it at all. For example, if you agree to 556 | terms that obligate you to collect a royalty for further conveying 557 | from those to whom you convey the Program, the only way you could 558 | satisfy both those terms and this License would be to refrain entirely 559 | from conveying the Program. 560 | 561 | #### 13. Use with the GNU Affero General Public License 562 | 563 | Notwithstanding any other provision of this License, you have 564 | permission to link or combine any covered work with a work licensed 565 | under version 3 of the GNU Affero General Public License into a single 566 | combined work, and to convey the resulting work. The terms of this 567 | License will continue to apply to the part which is the covered work, 568 | but the special requirements of the GNU Affero General Public License, 569 | section 13, concerning interaction through a network will apply to the 570 | combination as such. 571 | 572 | #### 14. Revised Versions of this License 573 | 574 | The Free Software Foundation may publish revised and/or new versions 575 | of the GNU General Public License from time to time. Such new versions 576 | will be similar in spirit to the present version, but may differ in 577 | detail to address new problems or concerns. 578 | 579 | Each version is given a distinguishing version number. If the Program 580 | specifies that a certain numbered version of the GNU General Public 581 | License "or any later version" applies to it, you have the option of 582 | following the terms and conditions either of that numbered version or 583 | of any later version published by the Free Software Foundation. If the 584 | Program does not specify a version number of the GNU General Public 585 | License, you may choose any version ever published by the Free 586 | Software Foundation. 587 | 588 | If the Program specifies that a proxy can decide which future versions 589 | of the GNU General Public License can be used, that proxy's public 590 | statement of acceptance of a version permanently authorizes you to 591 | choose that version for the Program. 592 | 593 | Later license versions may give you additional or different 594 | permissions. However, no additional obligations are imposed on any 595 | author or copyright holder as a result of your choosing to follow a 596 | later version. 597 | 598 | #### 15. Disclaimer of Warranty 599 | 600 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 601 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 602 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT 603 | WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT 604 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 605 | A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND 606 | PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE 607 | DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR 608 | CORRECTION. 609 | 610 | #### 16. Limitation of Liability 611 | 612 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 613 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR 614 | CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 615 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES 616 | ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT 617 | NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR 618 | LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM 619 | TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER 620 | PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 621 | 622 | #### 17. Interpretation of Sections 15 and 16 623 | 624 | If the disclaimer of warranty and limitation of liability provided 625 | above cannot be given local legal effect according to their terms, 626 | reviewing courts shall apply local law that most closely approximates 627 | an absolute waiver of all civil liability in connection with the 628 | Program, unless a warranty or assumption of liability accompanies a 629 | copy of the Program in return for a fee. 630 | 631 | END OF TERMS AND CONDITIONS 632 | -------------------------------------------------------------------------------- /Plugin/Npp/Notepad_plus_msgs.h: -------------------------------------------------------------------------------- 1 | // This file is part of Notepad++ project 2 | // Copyright (C)2021 Don HO 3 | 4 | // This program is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // at your option any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program. If not, see . 16 | 17 | 18 | #pragma once 19 | 20 | #include 21 | #include 22 | 23 | enum LangType {L_TEXT, L_PHP , L_C, L_CPP, L_CS, L_OBJC, L_JAVA, L_RC,\ 24 | L_HTML, L_XML, L_MAKEFILE, L_PASCAL, L_BATCH, L_INI, L_ASCII, L_USER,\ 25 | L_ASP, L_SQL, L_VB, L_JS, L_CSS, L_PERL, L_PYTHON, L_LUA, \ 26 | L_TEX, L_FORTRAN, L_BASH, L_FLASH, L_NSIS, L_TCL, L_LISP, L_SCHEME,\ 27 | L_ASM, L_DIFF, L_PROPS, L_PS, L_RUBY, L_SMALLTALK, L_VHDL, L_KIX, L_AU3,\ 28 | L_CAML, L_ADA, L_VERILOG, L_MATLAB, L_HASKELL, L_INNO, L_SEARCHRESULT,\ 29 | L_CMAKE, L_YAML, L_COBOL, L_GUI4CLI, L_D, L_POWERSHELL, L_R, L_JSP,\ 30 | L_COFFEESCRIPT, L_JSON, L_JAVASCRIPT, L_FORTRAN_77, L_BAANC, L_SREC,\ 31 | L_IHEX, L_TEHEX, L_SWIFT,\ 32 | L_ASN1, L_AVS, L_BLITZBASIC, L_PUREBASIC, L_FREEBASIC, \ 33 | L_CSOUND, L_ERLANG, L_ESCRIPT, L_FORTH, L_LATEX, \ 34 | L_MMIXAL, L_NIM, L_NNCRONTAB, L_OSCRIPT, L_REBOL, \ 35 | L_REGISTRY, L_RUST, L_SPICE, L_TXT2TAGS, L_VISUALPROLOG, L_TYPESCRIPT,\ 36 | // Don't use L_JS, use L_JAVASCRIPT instead 37 | // The end of enumated language type, so it should be always at the end 38 | L_EXTERNAL}; 39 | enum class ExternalLexerAutoIndentMode { Standard, C_Like, Custom }; 40 | enum class MacroStatus { Idle, RecordInProgress, RecordingStopped, PlayingBack }; 41 | 42 | enum winVer { WV_UNKNOWN, WV_WIN32S, WV_95, WV_98, WV_ME, WV_NT, WV_W2K, WV_XP, WV_S2003, WV_XPX64, WV_VISTA, WV_WIN7, WV_WIN8, WV_WIN81, WV_WIN10 }; 43 | enum Platform { PF_UNKNOWN, PF_X86, PF_X64, PF_IA64, PF_ARM64 }; 44 | 45 | 46 | 47 | #define NPPMSG (WM_USER + 1000) 48 | 49 | #define NPPM_GETCURRENTSCINTILLA (NPPMSG + 4) 50 | #define NPPM_GETCURRENTLANGTYPE (NPPMSG + 5) 51 | #define NPPM_SETCURRENTLANGTYPE (NPPMSG + 6) 52 | 53 | #define NPPM_GETNBOPENFILES (NPPMSG + 7) 54 | #define ALL_OPEN_FILES 0 55 | #define PRIMARY_VIEW 1 56 | #define SECOND_VIEW 2 57 | 58 | #define NPPM_GETOPENFILENAMES (NPPMSG + 8) 59 | 60 | 61 | #define NPPM_MODELESSDIALOG (NPPMSG + 12) 62 | #define MODELESSDIALOGADD 0 63 | #define MODELESSDIALOGREMOVE 1 64 | 65 | #define NPPM_GETNBSESSIONFILES (NPPMSG + 13) 66 | #define NPPM_GETSESSIONFILES (NPPMSG + 14) 67 | #define NPPM_SAVESESSION (NPPMSG + 15) 68 | #define NPPM_SAVECURRENTSESSION (NPPMSG + 16) 69 | 70 | struct sessionInfo { 71 | TCHAR* sessionFilePathName; 72 | int nbFile; 73 | TCHAR** files; 74 | }; 75 | 76 | #define NPPM_GETOPENFILENAMESPRIMARY (NPPMSG + 17) 77 | #define NPPM_GETOPENFILENAMESSECOND (NPPMSG + 18) 78 | 79 | #define NPPM_CREATESCINTILLAHANDLE (NPPMSG + 20) 80 | #define NPPM_DESTROYSCINTILLAHANDLE (NPPMSG + 21) 81 | #define NPPM_GETNBUSERLANG (NPPMSG + 22) 82 | 83 | #define NPPM_GETCURRENTDOCINDEX (NPPMSG + 23) 84 | #define MAIN_VIEW 0 85 | #define SUB_VIEW 1 86 | 87 | #define NPPM_SETSTATUSBAR (NPPMSG + 24) 88 | #define STATUSBAR_DOC_TYPE 0 89 | #define STATUSBAR_DOC_SIZE 1 90 | #define STATUSBAR_CUR_POS 2 91 | #define STATUSBAR_EOF_FORMAT 3 92 | #define STATUSBAR_UNICODE_TYPE 4 93 | #define STATUSBAR_TYPING_MODE 5 94 | 95 | #define NPPM_GETMENUHANDLE (NPPMSG + 25) 96 | #define NPPPLUGINMENU 0 97 | #define NPPMAINMENU 1 98 | // INT NPPM_GETMENUHANDLE(INT menuChoice, 0) 99 | // Return: menu handle (HMENU) of choice (plugin menu handle or Notepad++ main menu handle) 100 | 101 | #define NPPM_ENCODESCI (NPPMSG + 26) 102 | //ascii file to unicode 103 | //int NPPM_ENCODESCI(MAIN_VIEW/SUB_VIEW, 0) 104 | //return new unicodeMode 105 | 106 | #define NPPM_DECODESCI (NPPMSG + 27) 107 | //unicode file to ascii 108 | //int NPPM_DECODESCI(MAIN_VIEW/SUB_VIEW, 0) 109 | //return old unicodeMode 110 | 111 | #define NPPM_ACTIVATEDOC (NPPMSG + 28) 112 | //void NPPM_ACTIVATEDOC(int view, int index2Activate) 113 | 114 | #define NPPM_LAUNCHFINDINFILESDLG (NPPMSG + 29) 115 | //void NPPM_LAUNCHFINDINFILESDLG(TCHAR * dir2Search, TCHAR * filtre) 116 | 117 | #define NPPM_DMMSHOW (NPPMSG + 30) 118 | //void NPPM_DMMSHOW(0, tTbData->hClient) 119 | 120 | #define NPPM_DMMHIDE (NPPMSG + 31) 121 | //void NPPM_DMMHIDE(0, tTbData->hClient) 122 | 123 | #define NPPM_DMMUPDATEDISPINFO (NPPMSG + 32) 124 | //void NPPM_DMMUPDATEDISPINFO(0, tTbData->hClient) 125 | 126 | #define NPPM_DMMREGASDCKDLG (NPPMSG + 33) 127 | //void NPPM_DMMREGASDCKDLG(0, &tTbData) 128 | 129 | #define NPPM_LOADSESSION (NPPMSG + 34) 130 | //void NPPM_LOADSESSION(0, const TCHAR* file name) 131 | 132 | #define NPPM_DMMVIEWOTHERTAB (NPPMSG + 35) 133 | //void WM_DMM_VIEWOTHERTAB(0, tTbData->pszName) 134 | 135 | #define NPPM_RELOADFILE (NPPMSG + 36) 136 | //BOOL NPPM_RELOADFILE(BOOL withAlert, TCHAR *filePathName2Reload) 137 | 138 | #define NPPM_SWITCHTOFILE (NPPMSG + 37) 139 | //BOOL NPPM_SWITCHTOFILE(0, TCHAR *filePathName2switch) 140 | 141 | #define NPPM_SAVECURRENTFILE (NPPMSG + 38) 142 | //BOOL NPPM_SAVECURRENTFILE(0, 0) 143 | 144 | #define NPPM_SAVEALLFILES (NPPMSG + 39) 145 | //BOOL NPPM_SAVEALLFILES(0, 0) 146 | 147 | #define NPPM_SETMENUITEMCHECK (NPPMSG + 40) 148 | //void WM_PIMENU_CHECK(UINT funcItem[X]._cmdID, TRUE/FALSE) 149 | 150 | #define NPPM_ADDTOOLBARICON_DEPRECATED (NPPMSG + 41) 151 | //void NPPM_ADDTOOLBARICON(UINT funcItem[X]._cmdID, toolbarIcons iconHandles) -- DEPRECATED : use NPPM_ADDTOOLBARICON_FORDARKMODE instead 152 | //2 formats of icon are needed: .ico & .bmp 153 | //Both handles below should be set so the icon will be displayed correctly if toolbar icon sets are changed by users 154 | struct toolbarIcons { 155 | HBITMAP hToolbarBmp; 156 | HICON hToolbarIcon; 157 | }; 158 | 159 | #define NPPM_GETWINDOWSVERSION (NPPMSG + 42) 160 | //winVer NPPM_GETWINDOWSVERSION(0, 0) 161 | 162 | #define NPPM_DMMGETPLUGINHWNDBYNAME (NPPMSG + 43) 163 | //HWND WM_DMM_GETPLUGINHWNDBYNAME(const TCHAR *windowName, const TCHAR *moduleName) 164 | // if moduleName is NULL, then return value is NULL 165 | // if windowName is NULL, then the first found window handle which matches with the moduleName will be returned 166 | 167 | #define NPPM_MAKECURRENTBUFFERDIRTY (NPPMSG + 44) 168 | //BOOL NPPM_MAKECURRENTBUFFERDIRTY(0, 0) 169 | 170 | #define NPPM_GETENABLETHEMETEXTUREFUNC (NPPMSG + 45) 171 | //BOOL NPPM_GETENABLETHEMETEXTUREFUNC(0, 0) 172 | 173 | #define NPPM_GETPLUGINSCONFIGDIR (NPPMSG + 46) 174 | //INT NPPM_GETPLUGINSCONFIGDIR(int strLen, TCHAR *str) 175 | // Get user's plugin config directory path. It's useful if plugins want to save/load parameters for the current user 176 | // Returns the number of TCHAR copied/to copy. 177 | // Users should call it with "str" be NULL to get the required number of TCHAR (not including the terminating nul character), 178 | // allocate "str" buffer with the return value + 1, then call it again to get the path. 179 | 180 | #define NPPM_MSGTOPLUGIN (NPPMSG + 47) 181 | //BOOL NPPM_MSGTOPLUGIN(TCHAR *destModuleName, CommunicationInfo *info) 182 | // return value is TRUE when the message arrive to the destination plugins. 183 | // if destModule or info is NULL, then return value is FALSE 184 | struct CommunicationInfo { 185 | long internalMsg; 186 | const TCHAR * srcModuleName; 187 | void * info; // defined by plugin 188 | }; 189 | 190 | #define NPPM_MENUCOMMAND (NPPMSG + 48) 191 | //void NPPM_MENUCOMMAND(0, int cmdID) 192 | // uncomment //#include "menuCmdID.h" 193 | // in the beginning of this file then use the command symbols defined in "menuCmdID.h" file 194 | // to access all the Notepad++ menu command items 195 | 196 | #define NPPM_TRIGGERTABBARCONTEXTMENU (NPPMSG + 49) 197 | //void NPPM_TRIGGERTABBARCONTEXTMENU(int view, int index2Activate) 198 | 199 | #define NPPM_GETNPPVERSION (NPPMSG + 50) 200 | // int NPPM_GETNPPVERSION(BOOL ADD_ZERO_PADDING, 0) 201 | // Get Notepad++ version 202 | // HIWORD(returned_value) is major part of version: the 1st number 203 | // LOWORD(returned_value) is minor part of version: the 3 last numbers 204 | // 205 | // ADD_ZERO_PADDING == TRUE 206 | // 207 | // version | HIWORD | LOWORD 208 | //------------------------------ 209 | // 8.9.6.4 | 8 | 964 210 | // 9 | 9 | 0 211 | // 6.9 | 6 | 900 212 | // 6.6.6 | 6 | 660 213 | // 13.6.6.6 | 13 | 666 214 | // 215 | // 216 | // ADD_ZERO_PADDING == FALSE 217 | // 218 | // version | HIWORD | LOWORD 219 | //------------------------------ 220 | // 8.9.6.4 | 8 | 964 221 | // 9 | 9 | 0 222 | // 6.9 | 6 | 9 223 | // 6.6.6 | 6 | 66 224 | // 13.6.6.6 | 13 | 666 225 | 226 | #define NPPM_HIDETABBAR (NPPMSG + 51) 227 | // BOOL NPPM_HIDETABBAR(0, BOOL hideOrNot) 228 | // if hideOrNot is set as TRUE then tab bar will be hidden 229 | // otherwise it'll be shown. 230 | // return value : the old status value 231 | 232 | #define NPPM_ISTABBARHIDDEN (NPPMSG + 52) 233 | // BOOL NPPM_ISTABBARHIDDEN(0, 0) 234 | // returned value : TRUE if tab bar is hidden, otherwise FALSE 235 | 236 | #define NPPM_GETPOSFROMBUFFERID (NPPMSG + 57) 237 | // INT NPPM_GETPOSFROMBUFFERID(UINT_PTR bufferID, INT priorityView) 238 | // Return VIEW|INDEX from a buffer ID. -1 if the bufferID non existing 239 | // if priorityView set to SUB_VIEW, then SUB_VIEW will be search firstly 240 | // 241 | // VIEW takes 2 highest bits and INDEX (0 based) takes the rest (30 bits) 242 | // Here's the values for the view : 243 | // MAIN_VIEW 0 244 | // SUB_VIEW 1 245 | 246 | #define NPPM_GETFULLPATHFROMBUFFERID (NPPMSG + 58) 247 | // INT NPPM_GETFULLPATHFROMBUFFERID(UINT_PTR bufferID, TCHAR *fullFilePath) 248 | // Get full path file name from a bufferID. 249 | // Return -1 if the bufferID non existing, otherwise the number of TCHAR copied/to copy 250 | // User should call it with fullFilePath be NULL to get the number of TCHAR (not including the nul character), 251 | // allocate fullFilePath with the return values + 1, then call it again to get full path file name 252 | 253 | #define NPPM_GETBUFFERIDFROMPOS (NPPMSG + 59) 254 | // LRESULT NPPM_GETBUFFERIDFROMPOS(INT index, INT iView) 255 | // wParam: Position of document 256 | // lParam: View to use, 0 = Main, 1 = Secondary 257 | // Returns 0 if invalid 258 | 259 | #define NPPM_GETCURRENTBUFFERID (NPPMSG + 60) 260 | // LRESULT NPPM_GETCURRENTBUFFERID(0, 0) 261 | // Returns active Buffer 262 | 263 | #define NPPM_RELOADBUFFERID (NPPMSG + 61) 264 | // VOID NPPM_RELOADBUFFERID(UINT_PTR bufferID, BOOL alert) 265 | // Reloads Buffer 266 | // wParam: Buffer to reload 267 | // lParam: 0 if no alert, else alert 268 | 269 | #define NPPM_GETBUFFERLANGTYPE (NPPMSG + 64) 270 | // INT NPPM_GETBUFFERLANGTYPE(UINT_PTR bufferID, 0) 271 | // wParam: BufferID to get LangType from 272 | // lParam: 0 273 | // Returns as int, see LangType. -1 on error 274 | 275 | #define NPPM_SETBUFFERLANGTYPE (NPPMSG + 65) 276 | // BOOL NPPM_SETBUFFERLANGTYPE(UINT_PTR bufferID, INT langType) 277 | // wParam: BufferID to set LangType of 278 | // lParam: LangType 279 | // Returns TRUE on success, FALSE otherwise 280 | // use int, see LangType for possible values 281 | // L_USER and L_EXTERNAL are not supported 282 | 283 | #define NPPM_GETBUFFERENCODING (NPPMSG + 66) 284 | // INT NPPM_GETBUFFERENCODING(UINT_PTR bufferID, 0) 285 | // wParam: BufferID to get encoding from 286 | // lParam: 0 287 | // returns as int, see UniMode. -1 on error 288 | 289 | #define NPPM_SETBUFFERENCODING (NPPMSG + 67) 290 | // BOOL NPPM_SETBUFFERENCODING(UINT_PTR bufferID, INT encoding) 291 | // wParam: BufferID to set encoding of 292 | // lParam: encoding 293 | // Returns TRUE on success, FALSE otherwise 294 | // use int, see UniMode 295 | // Can only be done on new, unedited files 296 | 297 | #define NPPM_GETBUFFERFORMAT (NPPMSG + 68) 298 | // INT NPPM_GETBUFFERFORMAT(UINT_PTR bufferID, 0) 299 | // wParam: BufferID to get EolType format from 300 | // lParam: 0 301 | // returns as int, see EolType format. -1 on error 302 | 303 | #define NPPM_SETBUFFERFORMAT (NPPMSG + 69) 304 | // BOOL NPPM_SETBUFFERFORMAT(UINT_PTR bufferID, INT format) 305 | // wParam: BufferID to set EolType format of 306 | // lParam: format 307 | // Returns TRUE on success, FALSE otherwise 308 | // use int, see EolType format 309 | 310 | 311 | #define NPPM_HIDETOOLBAR (NPPMSG + 70) 312 | // BOOL NPPM_HIDETOOLBAR(0, BOOL hideOrNot) 313 | // if hideOrNot is set as TRUE then tool bar will be hidden 314 | // otherwise it'll be shown. 315 | // return value : the old status value 316 | 317 | #define NPPM_ISTOOLBARHIDDEN (NPPMSG + 71) 318 | // BOOL NPPM_ISTOOLBARHIDDEN(0, 0) 319 | // returned value : TRUE if tool bar is hidden, otherwise FALSE 320 | 321 | #define NPPM_HIDEMENU (NPPMSG + 72) 322 | // BOOL NPPM_HIDEMENU(0, BOOL hideOrNot) 323 | // if hideOrNot is set as TRUE then menu will be hidden 324 | // otherwise it'll be shown. 325 | // return value : the old status value 326 | 327 | #define NPPM_ISMENUHIDDEN (NPPMSG + 73) 328 | // BOOL NPPM_ISMENUHIDDEN(0, 0) 329 | // returned value : TRUE if menu is hidden, otherwise FALSE 330 | 331 | #define NPPM_HIDESTATUSBAR (NPPMSG + 74) 332 | // BOOL NPPM_HIDESTATUSBAR(0, BOOL hideOrNot) 333 | // if hideOrNot is set as TRUE then STATUSBAR will be hidden 334 | // otherwise it'll be shown. 335 | // return value : the old status value 336 | 337 | #define NPPM_ISSTATUSBARHIDDEN (NPPMSG + 75) 338 | // BOOL NPPM_ISSTATUSBARHIDDEN(0, 0) 339 | // returned value : TRUE if STATUSBAR is hidden, otherwise FALSE 340 | 341 | #define NPPM_GETSHORTCUTBYCMDID (NPPMSG + 76) 342 | // BOOL NPPM_GETSHORTCUTBYCMDID(int cmdID, ShortcutKey *sk) 343 | // get your plugin command current mapped shortcut into sk via cmdID 344 | // You may need it after getting NPPN_READY notification 345 | // returned value : TRUE if this function call is successful and shortcut is enable, otherwise FALSE 346 | 347 | #define NPPM_DOOPEN (NPPMSG + 77) 348 | // BOOL NPPM_DOOPEN(0, const TCHAR *fullPathName2Open) 349 | // fullPathName2Open indicates the full file path name to be opened. 350 | // The return value is TRUE (1) if the operation is successful, otherwise FALSE (0). 351 | 352 | #define NPPM_SAVECURRENTFILEAS (NPPMSG + 78) 353 | // BOOL NPPM_SAVECURRENTFILEAS (BOOL asCopy, const TCHAR* filename) 354 | 355 | #define NPPM_GETCURRENTNATIVELANGENCODING (NPPMSG + 79) 356 | // INT NPPM_GETCURRENTNATIVELANGENCODING(0, 0) 357 | // returned value : the current native language encoding 358 | 359 | #define NPPM_ALLOCATESUPPORTED (NPPMSG + 80) 360 | // returns TRUE if NPPM_ALLOCATECMDID is supported 361 | // Use to identify if subclassing is necessary 362 | 363 | #define NPPM_ALLOCATECMDID (NPPMSG + 81) 364 | // BOOL NPPM_ALLOCATECMDID(int numberRequested, int* startNumber) 365 | // sets startNumber to the initial command ID if successful 366 | // Returns: TRUE if successful, FALSE otherwise. startNumber will also be set to 0 if unsuccessful 367 | 368 | #define NPPM_ALLOCATEMARKER (NPPMSG + 82) 369 | // BOOL NPPM_ALLOCATEMARKER(int numberRequested, int* startNumber) 370 | // sets startNumber to the initial command ID if successful 371 | // Allocates a marker number to a plugin: if a plugin need to add a marker on Notepad++'s Scintilla marker margin, 372 | // it has to use this message to get marker number, in order to prevent from the conflict with the other plugins. 373 | // Returns: TRUE if successful, FALSE otherwise. startNumber will also be set to 0 if unsuccessful 374 | 375 | #define NPPM_GETLANGUAGENAME (NPPMSG + 83) 376 | // INT NPPM_GETLANGUAGENAME(int langType, TCHAR *langName) 377 | // Get programming language name from the given language type (LangType) 378 | // Return value is the number of copied character / number of character to copy (\0 is not included) 379 | // You should call this function 2 times - the first time you pass langName as NULL to get the number of characters to copy. 380 | // You allocate a buffer of the length of (the number of characters + 1) then call NPPM_GETLANGUAGENAME function the 2nd time 381 | // by passing allocated buffer as argument langName 382 | 383 | #define NPPM_GETLANGUAGEDESC (NPPMSG + 84) 384 | // INT NPPM_GETLANGUAGEDESC(int langType, TCHAR *langDesc) 385 | // Get programming language short description from the given language type (LangType) 386 | // Return value is the number of copied character / number of character to copy (\0 is not included) 387 | // You should call this function 2 times - the first time you pass langDesc as NULL to get the number of characters to copy. 388 | // You allocate a buffer of the length of (the number of characters + 1) then call NPPM_GETLANGUAGEDESC function the 2nd time 389 | // by passing allocated buffer as argument langDesc 390 | 391 | #define NPPM_SHOWDOCLIST (NPPMSG + 85) 392 | // VOID NPPM_SHOWDOCLIST(0, BOOL toShowOrNot) 393 | // Send this message to show or hide Document List. 394 | // if toShowOrNot is TRUE then show Document List, otherwise hide it. 395 | 396 | #define NPPM_ISDOCLISTSHOWN (NPPMSG + 86) 397 | // BOOL NPPM_ISDOCLISTSHOWN(0, 0) 398 | // Check to see if Document List is shown. 399 | 400 | #define NPPM_GETAPPDATAPLUGINSALLOWED (NPPMSG + 87) 401 | // BOOL NPPM_GETAPPDATAPLUGINSALLOWED(0, 0) 402 | // Check to see if loading plugins from "%APPDATA%\..\Local\Notepad++\plugins" is allowed. 403 | 404 | #define NPPM_GETCURRENTVIEW (NPPMSG + 88) 405 | // INT NPPM_GETCURRENTVIEW(0, 0) 406 | // Return: current edit view of Notepad++. Only 2 possible values: 0 = Main, 1 = Secondary 407 | 408 | #define NPPM_DOCLISTDISABLEEXTCOLUMN (NPPMSG + 89) 409 | // VOID NPPM_DOCLISTDISABLEEXTCOLUMN(0, BOOL disableOrNot) 410 | // Disable or enable extension column of Document List 411 | 412 | #define NPPM_DOCLISTDISABLEPATHCOLUMN (NPPMSG + 102) 413 | // VOID NPPM_DOCLISTDISABLEPATHCOLUMN(0, BOOL disableOrNot) 414 | // Disable or enable path column of Document List 415 | 416 | #define NPPM_GETEDITORDEFAULTFOREGROUNDCOLOR (NPPMSG + 90) 417 | // INT NPPM_GETEDITORDEFAULTFOREGROUNDCOLOR(0, 0) 418 | // Return: current editor default foreground color. You should convert the returned value in COLORREF 419 | 420 | #define NPPM_GETEDITORDEFAULTBACKGROUNDCOLOR (NPPMSG + 91) 421 | // INT NPPM_GETEDITORDEFAULTBACKGROUNDCOLOR(0, 0) 422 | // Return: current editor default background color. You should convert the returned value in COLORREF 423 | 424 | #define NPPM_SETSMOOTHFONT (NPPMSG + 92) 425 | // VOID NPPM_SETSMOOTHFONT(0, BOOL setSmoothFontOrNot) 426 | 427 | #define NPPM_SETEDITORBORDEREDGE (NPPMSG + 93) 428 | // VOID NPPM_SETEDITORBORDEREDGE(0, BOOL withEditorBorderEdgeOrNot) 429 | 430 | #define NPPM_SAVEFILE (NPPMSG + 94) 431 | // VOID NPPM_SAVEFILE(0, const TCHAR *fileNameToSave) 432 | 433 | #define NPPM_DISABLEAUTOUPDATE (NPPMSG + 95) // 2119 in decimal 434 | // VOID NPPM_DISABLEAUTOUPDATE(0, 0) 435 | 436 | #define NPPM_REMOVESHORTCUTBYCMDID (NPPMSG + 96) // 2120 in decimal 437 | // BOOL NPPM_REMOVESHORTCUTASSIGNMENT(int cmdID) 438 | // removes the assigned shortcut mapped to cmdID 439 | // returned value : TRUE if function call is successful, otherwise FALSE 440 | 441 | #define NPPM_GETPLUGINHOMEPATH (NPPMSG + 97) 442 | // INT NPPM_GETPLUGINHOMEPATH(size_t strLen, TCHAR *pluginRootPath) 443 | // Get plugin home root path. It's useful if plugins want to get its own path 444 | // by appending which is the name of plugin without extension part. 445 | // Returns the number of TCHAR copied/to copy. 446 | // Users should call it with pluginRootPath be NULL to get the required number of TCHAR (not including the terminating nul character), 447 | // allocate pluginRootPath buffer with the return value + 1, then call it again to get the path. 448 | 449 | #define NPPM_GETSETTINGSONCLOUDPATH (NPPMSG + 98) 450 | // INT NPPM_GETSETTINGSCLOUDPATH(size_t strLen, TCHAR *settingsOnCloudPath) 451 | // Get settings on cloud path. It's useful if plugins want to store its settings on Cloud, if this path is set. 452 | // Returns the number of TCHAR copied/to copy. If the return value is 0, then this path is not set, or the "strLen" is not enough to copy the path. 453 | // Users should call it with settingsCloudPath be NULL to get the required number of TCHAR (not including the terminating nul character), 454 | // allocate settingsCloudPath buffer with the return value + 1, then call it again to get the path. 455 | 456 | #define NPPM_SETLINENUMBERWIDTHMODE (NPPMSG + 99) 457 | #define LINENUMWIDTH_DYNAMIC 0 458 | #define LINENUMWIDTH_CONSTANT 1 459 | // BOOL NPPM_SETLINENUMBERWIDTHMODE(0, INT widthMode) 460 | // Set line number margin width in dynamic width mode (LINENUMWIDTH_DYNAMIC) or constant width mode (LINENUMWIDTH_CONSTANT) 461 | // It may help some plugins to disable non-dynamic line number margins width to have a smoothly visual effect while vertical scrolling the content in Notepad++ 462 | // If calling is successful return TRUE, otherwise return FALSE. 463 | 464 | #define NPPM_GETLINENUMBERWIDTHMODE (NPPMSG + 100) 465 | // INT NPPM_GETLINENUMBERWIDTHMODE(0, 0) 466 | // Get line number margin width in dynamic width mode (LINENUMWIDTH_DYNAMIC) or constant width mode (LINENUMWIDTH_CONSTANT) 467 | 468 | #define NPPM_ADDTOOLBARICON_FORDARKMODE (NPPMSG + 101) 469 | // VOID NPPM_ADDTOOLBARICON_FORDARKMODE(UINT funcItem[X]._cmdID, toolbarIconsWithDarkMode iconHandles) 470 | // Use NPPM_ADDTOOLBARICON_FORDARKMODE instead obsolete NPPM_ADDTOOLBARICON which doesn't support the dark mode 471 | // 2 formats / 3 icons are needed: 1 * BMP + 2 * ICO 472 | // All 3 handles below should be set so the icon will be displayed correctly if toolbar icon sets are changed by users, also in dark mode 473 | struct toolbarIconsWithDarkMode { 474 | HBITMAP hToolbarBmp; 475 | HICON hToolbarIcon; 476 | HICON hToolbarIconDarkMode; 477 | }; 478 | 479 | #define NPPM_GETEXTERNALLEXERAUTOINDENTMODE (NPPMSG + 103) 480 | // BOOL NPPM_GETEXTERNALLEXERAUTOINDENTMODE(const TCHAR *languageName, ExternalLexerAutoIndentMode &autoIndentMode) 481 | // Get ExternalLexerAutoIndentMode for an installed external programming language. 482 | // - Standard means Notepad++ will keep the same TAB indentation between lines; 483 | // - C_Like means Notepad++ will perform a C-Language style indentation for the selected external language; 484 | // - Custom means a Plugin will be controlling auto-indentation for the current language. 485 | // returned values: TRUE for successful searches, otherwise FALSE. 486 | 487 | #define NPPM_SETEXTERNALLEXERAUTOINDENTMODE (NPPMSG + 104) 488 | // BOOL NPPM_SETEXTERNALLEXERAUTOINDENTMODE(const TCHAR *languageName, ExternalLexerAutoIndentMode autoIndentMode) 489 | // Set ExternalLexerAutoIndentMode for an installed external programming language. 490 | // - Standard means Notepad++ will keep the same TAB indentation between lines; 491 | // - C_Like means Notepad++ will perform a C-Language style indentation for the selected external language; 492 | // - Custom means a Plugin will be controlling auto-indentation for the current language. 493 | // returned value: TRUE if function call was successful, otherwise FALSE. 494 | 495 | #define NPPM_ISAUTOINDENTON (NPPMSG + 105) 496 | // BOOL NPPM_ISAUTOINDENTON(0, 0) 497 | // Returns the current Use Auto-Indentation setting in Notepad++ Preferences. 498 | 499 | #define NPPM_GETCURRENTMACROSTATUS (NPPMSG + 106) 500 | // MacroStatus NPPM_GETCURRENTMACROSTATUS(0, 0) 501 | // Gets current enum class MacroStatus { Idle - means macro is not in use and it's empty, RecordInProgress, RecordingStopped, PlayingBack } 502 | 503 | #define NPPM_ISDARKMODEENABLED (NPPMSG + 107) 504 | // bool NPPM_ISDARKMODEENABLED(0, 0) 505 | // Returns true when Notepad++ Dark Mode is enable, false when it is not. 506 | 507 | #define NPPM_GETDARKMODECOLORS (NPPMSG + 108) 508 | // bool NPPM_GETDARKMODECOLORS (size_t cbSize, NppDarkMode::Colors* returnColors) 509 | // - cbSize must be filled with sizeof(NppDarkMode::Colors). 510 | // - returnColors must be a pre-allocated NppDarkMode::Colors struct. 511 | // Returns true when successful, false otherwise. 512 | // You need to uncomment the following code to use NppDarkMode::Colors structure: 513 | // 514 | // namespace NppDarkMode 515 | // { 516 | // struct Colors 517 | // { 518 | // COLORREF background = 0; 519 | // COLORREF softerBackground = 0; 520 | // COLORREF hotBackground = 0; 521 | // COLORREF pureBackground = 0; 522 | // COLORREF errorBackground = 0; 523 | // COLORREF text = 0; 524 | // COLORREF darkerText = 0; 525 | // COLORREF disabledText = 0; 526 | // COLORREF linkText = 0; 527 | // COLORREF edge = 0; 528 | // COLORREF hotEdge = 0; 529 | // COLORREF disabledEdge = 0; 530 | // }; 531 | // } 532 | // 533 | // Note: in the case of calling failure ("false" is returned), you may need to change NppDarkMode::Colors structure to: 534 | // https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/NppDarkMode.h#L32 535 | 536 | #define NPPM_GETCURRENTCMDLINE (NPPMSG + 109) 537 | // INT NPPM_GETCURRENTCMDLINE(size_t strLen, TCHAR *commandLineStr) 538 | // Get the Current Command Line string. 539 | // Returns the number of TCHAR copied/to copy. 540 | // Users should call it with commandLineStr as NULL to get the required number of TCHAR (not including the terminating nul character), 541 | // allocate commandLineStr buffer with the return value + 1, then call it again to get the current command line string. 542 | 543 | #define NPPM_CREATELEXER (NPPMSG + 110) 544 | // void* NPPN_CREATELEXER(0, const TCHAR *lexer_name) 545 | // Returns the ILexer pointer created by Lexilla 546 | 547 | #define VAR_NOT_RECOGNIZED 0 548 | #define FULL_CURRENT_PATH 1 549 | #define CURRENT_DIRECTORY 2 550 | #define FILE_NAME 3 551 | #define NAME_PART 4 552 | #define EXT_PART 5 553 | #define CURRENT_WORD 6 554 | #define NPP_DIRECTORY 7 555 | #define CURRENT_LINE 8 556 | #define CURRENT_COLUMN 9 557 | #define NPP_FULL_FILE_PATH 10 558 | #define GETFILENAMEATCURSOR 11 559 | #define CURRENT_LINESTR 12 560 | 561 | #define RUNCOMMAND_USER (WM_USER + 3000) 562 | #define NPPM_GETFULLCURRENTPATH (RUNCOMMAND_USER + FULL_CURRENT_PATH) 563 | #define NPPM_GETCURRENTDIRECTORY (RUNCOMMAND_USER + CURRENT_DIRECTORY) 564 | #define NPPM_GETFILENAME (RUNCOMMAND_USER + FILE_NAME) 565 | #define NPPM_GETNAMEPART (RUNCOMMAND_USER + NAME_PART) 566 | #define NPPM_GETEXTPART (RUNCOMMAND_USER + EXT_PART) 567 | #define NPPM_GETCURRENTWORD (RUNCOMMAND_USER + CURRENT_WORD) 568 | #define NPPM_GETNPPDIRECTORY (RUNCOMMAND_USER + NPP_DIRECTORY) 569 | #define NPPM_GETFILENAMEATCURSOR (RUNCOMMAND_USER + GETFILENAMEATCURSOR) 570 | #define NPPM_GETCURRENTLINESTR (RUNCOMMAND_USER + CURRENT_LINESTR) 571 | // BOOL NPPM_GETXXXXXXXXXXXXXXXX(size_t strLen, TCHAR *str) 572 | // where str is the allocated TCHAR array, 573 | // strLen is the allocated array size 574 | // The return value is TRUE when get generic_string operation success 575 | // Otherwise (allocated array size is too small) FALSE 576 | 577 | #define NPPM_GETCURRENTLINE (RUNCOMMAND_USER + CURRENT_LINE) 578 | // INT NPPM_GETCURRENTLINE(0, 0) 579 | // return the caret current position line 580 | #define NPPM_GETCURRENTCOLUMN (RUNCOMMAND_USER + CURRENT_COLUMN) 581 | // INT NPPM_GETCURRENTCOLUMN(0, 0) 582 | // return the caret current position column 583 | 584 | #define NPPM_GETNPPFULLFILEPATH (RUNCOMMAND_USER + NPP_FULL_FILE_PATH) 585 | 586 | 587 | // Notification code 588 | #define NPPN_FIRST 1000 589 | #define NPPN_READY (NPPN_FIRST + 1) // To notify plugins that all the procedures of launchment of notepad++ are done. 590 | //scnNotification->nmhdr.code = NPPN_READY; 591 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 592 | //scnNotification->nmhdr.idFrom = 0; 593 | 594 | #define NPPN_TBMODIFICATION (NPPN_FIRST + 2) // To notify plugins that toolbar icons can be registered 595 | //scnNotification->nmhdr.code = NPPN_TBMODIFICATION; 596 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 597 | //scnNotification->nmhdr.idFrom = 0; 598 | 599 | #define NPPN_FILEBEFORECLOSE (NPPN_FIRST + 3) // To notify plugins that the current file is about to be closed 600 | //scnNotification->nmhdr.code = NPPN_FILEBEFORECLOSE; 601 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 602 | //scnNotification->nmhdr.idFrom = BufferID; 603 | 604 | #define NPPN_FILEOPENED (NPPN_FIRST + 4) // To notify plugins that the current file is just opened 605 | //scnNotification->nmhdr.code = NPPN_FILEOPENED; 606 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 607 | //scnNotification->nmhdr.idFrom = BufferID; 608 | 609 | #define NPPN_FILECLOSED (NPPN_FIRST + 5) // To notify plugins that the current file is just closed 610 | //scnNotification->nmhdr.code = NPPN_FILECLOSED; 611 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 612 | //scnNotification->nmhdr.idFrom = BufferID; 613 | 614 | #define NPPN_FILEBEFOREOPEN (NPPN_FIRST + 6) // To notify plugins that the current file is about to be opened 615 | //scnNotification->nmhdr.code = NPPN_FILEBEFOREOPEN; 616 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 617 | //scnNotification->nmhdr.idFrom = BufferID; 618 | 619 | #define NPPN_FILEBEFORESAVE (NPPN_FIRST + 7) // To notify plugins that the current file is about to be saved 620 | //scnNotification->nmhdr.code = NPPN_FILEBEFOREOPEN; 621 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 622 | //scnNotification->nmhdr.idFrom = BufferID; 623 | 624 | #define NPPN_FILESAVED (NPPN_FIRST + 8) // To notify plugins that the current file is just saved 625 | //scnNotification->nmhdr.code = NPPN_FILESAVED; 626 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 627 | //scnNotification->nmhdr.idFrom = BufferID; 628 | 629 | #define NPPN_SHUTDOWN (NPPN_FIRST + 9) // To notify plugins that Notepad++ is about to be shutdowned. 630 | //scnNotification->nmhdr.code = NPPN_SHUTDOWN; 631 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 632 | //scnNotification->nmhdr.idFrom = 0; 633 | 634 | #define NPPN_BUFFERACTIVATED (NPPN_FIRST + 10) // To notify plugins that a buffer was activated (put to foreground). 635 | //scnNotification->nmhdr.code = NPPN_BUFFERACTIVATED; 636 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 637 | //scnNotification->nmhdr.idFrom = activatedBufferID; 638 | 639 | #define NPPN_LANGCHANGED (NPPN_FIRST + 11) // To notify plugins that the language in the current doc is just changed. 640 | //scnNotification->nmhdr.code = NPPN_LANGCHANGED; 641 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 642 | //scnNotification->nmhdr.idFrom = currentBufferID; 643 | 644 | #define NPPN_WORDSTYLESUPDATED (NPPN_FIRST + 12) // To notify plugins that user initiated a WordStyleDlg change. 645 | //scnNotification->nmhdr.code = NPPN_WORDSTYLESUPDATED; 646 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 647 | //scnNotification->nmhdr.idFrom = currentBufferID; 648 | 649 | #define NPPN_SHORTCUTREMAPPED (NPPN_FIRST + 13) // To notify plugins that plugin command shortcut is remapped. 650 | //scnNotification->nmhdr.code = NPPN_SHORTCUTSREMAPPED; 651 | //scnNotification->nmhdr.hwndFrom = ShortcutKeyStructurePointer; 652 | //scnNotification->nmhdr.idFrom = cmdID; 653 | //where ShortcutKeyStructurePointer is pointer of struct ShortcutKey: 654 | //struct ShortcutKey { 655 | // bool _isCtrl; 656 | // bool _isAlt; 657 | // bool _isShift; 658 | // UCHAR _key; 659 | //}; 660 | 661 | #define NPPN_FILEBEFORELOAD (NPPN_FIRST + 14) // To notify plugins that the current file is about to be loaded 662 | //scnNotification->nmhdr.code = NPPN_FILEBEFOREOPEN; 663 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 664 | //scnNotification->nmhdr.idFrom = NULL; 665 | 666 | #define NPPN_FILELOADFAILED (NPPN_FIRST + 15) // To notify plugins that file open operation failed 667 | //scnNotification->nmhdr.code = NPPN_FILEOPENFAILED; 668 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 669 | //scnNotification->nmhdr.idFrom = BufferID; 670 | 671 | #define NPPN_READONLYCHANGED (NPPN_FIRST + 16) // To notify plugins that current document change the readonly status, 672 | //scnNotification->nmhdr.code = NPPN_READONLYCHANGED; 673 | //scnNotification->nmhdr.hwndFrom = bufferID; 674 | //scnNotification->nmhdr.idFrom = docStatus; 675 | // where bufferID is BufferID 676 | // docStatus can be combined by DOCSTATUS_READONLY and DOCSTATUS_BUFFERDIRTY 677 | 678 | #define DOCSTATUS_READONLY 1 679 | #define DOCSTATUS_BUFFERDIRTY 2 680 | 681 | #define NPPN_DOCORDERCHANGED (NPPN_FIRST + 17) // To notify plugins that document order is changed 682 | //scnNotification->nmhdr.code = NPPN_DOCORDERCHANGED; 683 | //scnNotification->nmhdr.hwndFrom = newIndex; 684 | //scnNotification->nmhdr.idFrom = BufferID; 685 | 686 | #define NPPN_SNAPSHOTDIRTYFILELOADED (NPPN_FIRST + 18) // To notify plugins that a snapshot dirty file is loaded on startup 687 | //scnNotification->nmhdr.code = NPPN_SNAPSHOTDIRTYFILELOADED; 688 | //scnNotification->nmhdr.hwndFrom = NULL; 689 | //scnNotification->nmhdr.idFrom = BufferID; 690 | 691 | #define NPPN_BEFORESHUTDOWN (NPPN_FIRST + 19) // To notify plugins that Npp shutdown has been triggered, files have not been closed yet 692 | //scnNotification->nmhdr.code = NPPN_BEFORESHUTDOWN; 693 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 694 | //scnNotification->nmhdr.idFrom = 0; 695 | 696 | #define NPPN_CANCELSHUTDOWN (NPPN_FIRST + 20) // To notify plugins that Npp shutdown has been cancelled 697 | //scnNotification->nmhdr.code = NPPN_CANCELSHUTDOWN; 698 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 699 | //scnNotification->nmhdr.idFrom = 0; 700 | 701 | #define NPPN_FILEBEFORERENAME (NPPN_FIRST + 21) // To notify plugins that file is to be renamed 702 | //scnNotification->nmhdr.code = NPPN_FILEBEFORERENAME; 703 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 704 | //scnNotification->nmhdr.idFrom = BufferID; 705 | 706 | #define NPPN_FILERENAMECANCEL (NPPN_FIRST + 22) // To notify plugins that file rename has been cancelled 707 | //scnNotification->nmhdr.code = NPPN_FILERENAMECANCEL; 708 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 709 | //scnNotification->nmhdr.idFrom = BufferID; 710 | 711 | #define NPPN_FILERENAMED (NPPN_FIRST + 23) // To notify plugins that file has been renamed 712 | //scnNotification->nmhdr.code = NPPN_FILERENAMED; 713 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 714 | //scnNotification->nmhdr.idFrom = BufferID; 715 | 716 | #define NPPN_FILEBEFOREDELETE (NPPN_FIRST + 24) // To notify plugins that file is to be deleted 717 | //scnNotification->nmhdr.code = NPPN_FILEBEFOREDELETE; 718 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 719 | //scnNotification->nmhdr.idFrom = BufferID; 720 | 721 | #define NPPN_FILEDELETEFAILED (NPPN_FIRST + 25) // To notify plugins that file deletion has failed 722 | //scnNotification->nmhdr.code = NPPN_FILEDELETEFAILED; 723 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 724 | //scnNotification->nmhdr.idFrom = BufferID; 725 | 726 | #define NPPN_FILEDELETED (NPPN_FIRST + 26) // To notify plugins that file has been deleted 727 | //scnNotification->nmhdr.code = NPPN_FILEDELETED; 728 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 729 | //scnNotification->nmhdr.idFrom = BufferID; 730 | 731 | #define NPPN_DARKMODECHANGED (NPPN_FIRST + 27) // To notify plugins that Dark Mode was enabled/disabled 732 | //scnNotification->nmhdr.code = NPPN_DARKMODECHANGED; 733 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 734 | //scnNotification->nmhdr.idFrom = 0; 735 | 736 | #define NPPN_CMDLINEPLUGINMSG (NPPN_FIRST + 28) // To notify plugins that the new argument for plugins (via '-pluginMessage="YOUR_PLUGIN_ARGUMENT"' in command line) is available 737 | //scnNotification->nmhdr.code = NPPN_CMDLINEPLUGINMSG; 738 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 739 | //scnNotification->nmhdr.idFrom = pluginMessage; //where pluginMessage is pointer of type wchar_t 740 | -------------------------------------------------------------------------------- /Plugin/Npp/menuCmdID.h: -------------------------------------------------------------------------------- 1 | // This file is part of Notepad++ project 2 | // Copyright (C)2021 Don HO 3 | 4 | // This program is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // at your option any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program. If not, see . 16 | 17 | 18 | #pragma once 19 | 20 | #define IDM 40000 21 | 22 | #define IDM_FILE (IDM + 1000) 23 | // IMPORTANT: If list below is modified, you have to change the value of IDM_FILEMENU_LASTONE and IDM_FILEMENU_EXISTCMDPOSITION 24 | #define IDM_FILE_NEW (IDM_FILE + 1) 25 | #define IDM_FILE_OPEN (IDM_FILE + 2) 26 | #define IDM_FILE_CLOSE (IDM_FILE + 3) 27 | #define IDM_FILE_CLOSEALL (IDM_FILE + 4) 28 | #define IDM_FILE_CLOSEALL_BUT_CURRENT (IDM_FILE + 5) 29 | #define IDM_FILE_SAVE (IDM_FILE + 6) 30 | #define IDM_FILE_SAVEALL (IDM_FILE + 7) 31 | #define IDM_FILE_SAVEAS (IDM_FILE + 8) 32 | #define IDM_FILE_CLOSEALL_TOLEFT (IDM_FILE + 9) 33 | #define IDM_FILE_PRINT (IDM_FILE + 10) 34 | #define IDM_FILE_PRINTNOW 1001 35 | #define IDM_FILE_EXIT (IDM_FILE + 11) 36 | #define IDM_FILE_LOADSESSION (IDM_FILE + 12) 37 | #define IDM_FILE_SAVESESSION (IDM_FILE + 13) 38 | #define IDM_FILE_RELOAD (IDM_FILE + 14) 39 | #define IDM_FILE_SAVECOPYAS (IDM_FILE + 15) 40 | #define IDM_FILE_DELETE (IDM_FILE + 16) 41 | #define IDM_FILE_RENAME (IDM_FILE + 17) 42 | #define IDM_FILE_CLOSEALL_TORIGHT (IDM_FILE + 18) 43 | #define IDM_FILE_OPEN_FOLDER (IDM_FILE + 19) 44 | #define IDM_FILE_OPEN_CMD (IDM_FILE + 20) 45 | #define IDM_FILE_RESTORELASTCLOSEDFILE (IDM_FILE + 21) 46 | #define IDM_FILE_OPENFOLDERASWORSPACE (IDM_FILE + 22) 47 | #define IDM_FILE_OPEN_DEFAULT_VIEWER (IDM_FILE + 23) 48 | #define IDM_FILE_CLOSEALL_UNCHANGED (IDM_FILE + 24) 49 | #define IDM_FILE_CONTAININGFOLDERASWORKSPACE (IDM_FILE + 25) 50 | // IMPORTANT: If list above is modified, you have to change the following values: 51 | 52 | // To be updated if new menu item(s) is (are) added in menu "File" 53 | #define IDM_FILEMENU_LASTONE IDM_FILE_CONTAININGFOLDERASWORKSPACE 54 | 55 | // 0 based position of command "Exit" including the bars in the file menu 56 | // and without counting "Recent files history" items 57 | 58 | // 0 New 59 | // 1 Open... 60 | // 2 Open Containing Folder 61 | // 3 Open Folder as Workspace 62 | // 4 Open in Default Viewer 63 | // 5 Reload from Disk 64 | // 6 Save 65 | // 7 Save As... 66 | // 8 Save a Copy As... 67 | // 9 Save All 68 | //10 Rename... 69 | //11 Close 70 | //12 Close All 71 | //13 Close More 72 | //14 Move to Recycle Bin 73 | //15 -------- 74 | //16 Load Session... 75 | //17 Save Session... 76 | //18 -------- 77 | //19 Print... 78 | //20 Print Now 79 | //21 -------- 80 | //22 Exit 81 | #define IDM_FILEMENU_EXISTCMDPOSITION 22 82 | 83 | 84 | #define IDM_EDIT (IDM + 2000) 85 | #define IDM_EDIT_CUT (IDM_EDIT + 1) 86 | #define IDM_EDIT_COPY (IDM_EDIT + 2) 87 | #define IDM_EDIT_UNDO (IDM_EDIT + 3) 88 | #define IDM_EDIT_REDO (IDM_EDIT + 4) 89 | #define IDM_EDIT_PASTE (IDM_EDIT + 5) 90 | #define IDM_EDIT_DELETE (IDM_EDIT + 6) 91 | #define IDM_EDIT_SELECTALL (IDM_EDIT + 7) 92 | #define IDM_EDIT_INS_TAB (IDM_EDIT + 8) 93 | #define IDM_EDIT_RMV_TAB (IDM_EDIT + 9) 94 | #define IDM_EDIT_DUP_LINE (IDM_EDIT + 10) 95 | #define IDM_EDIT_TRANSPOSE_LINE (IDM_EDIT + 11) 96 | #define IDM_EDIT_SPLIT_LINES (IDM_EDIT + 12) 97 | #define IDM_EDIT_JOIN_LINES (IDM_EDIT + 13) 98 | #define IDM_EDIT_LINE_UP (IDM_EDIT + 14) 99 | #define IDM_EDIT_LINE_DOWN (IDM_EDIT + 15) 100 | #define IDM_EDIT_UPPERCASE (IDM_EDIT + 16) 101 | #define IDM_EDIT_LOWERCASE (IDM_EDIT + 17) 102 | #define IDM_MACRO_STARTRECORDINGMACRO (IDM_EDIT + 18) 103 | #define IDM_MACRO_STOPRECORDINGMACRO (IDM_EDIT + 19) 104 | #define IDM_EDIT_BEGINENDSELECT (IDM_EDIT + 20) 105 | #define IDM_MACRO_PLAYBACKRECORDEDMACRO (IDM_EDIT + 21) 106 | #define IDM_EDIT_BLOCK_COMMENT (IDM_EDIT + 22) 107 | #define IDM_EDIT_STREAM_COMMENT (IDM_EDIT + 23) 108 | #define IDM_EDIT_TRIMTRAILING (IDM_EDIT + 24) 109 | #define IDM_MACRO_SAVECURRENTMACRO (IDM_EDIT + 25) 110 | #define IDM_EDIT_RTL (IDM_EDIT + 26) 111 | #define IDM_EDIT_LTR (IDM_EDIT + 27) 112 | #define IDM_EDIT_SETREADONLY (IDM_EDIT + 28) 113 | #define IDM_EDIT_FULLPATHTOCLIP (IDM_EDIT + 29) 114 | #define IDM_EDIT_FILENAMETOCLIP (IDM_EDIT + 30) 115 | #define IDM_EDIT_CURRENTDIRTOCLIP (IDM_EDIT + 31) 116 | #define IDM_MACRO_RUNMULTIMACRODLG (IDM_EDIT + 32) 117 | #define IDM_EDIT_CLEARREADONLY (IDM_EDIT + 33) 118 | #define IDM_EDIT_COLUMNMODE (IDM_EDIT + 34) 119 | #define IDM_EDIT_BLOCK_COMMENT_SET (IDM_EDIT + 35) 120 | #define IDM_EDIT_BLOCK_UNCOMMENT (IDM_EDIT + 36) 121 | #define IDM_EDIT_COLUMNMODETIP (IDM_EDIT + 37) 122 | #define IDM_EDIT_PASTE_AS_HTML (IDM_EDIT + 38) 123 | #define IDM_EDIT_PASTE_AS_RTF (IDM_EDIT + 39) 124 | #define IDM_OPEN_ALL_RECENT_FILE (IDM_EDIT + 40) 125 | #define IDM_CLEAN_RECENT_FILE_LIST (IDM_EDIT + 41) 126 | #define IDM_EDIT_TRIMLINEHEAD (IDM_EDIT + 42) 127 | #define IDM_EDIT_TRIM_BOTH (IDM_EDIT + 43) 128 | #define IDM_EDIT_EOL2WS (IDM_EDIT + 44) 129 | #define IDM_EDIT_TRIMALL (IDM_EDIT + 45) 130 | #define IDM_EDIT_TAB2SW (IDM_EDIT + 46) 131 | #define IDM_EDIT_STREAM_UNCOMMENT (IDM_EDIT + 47) 132 | #define IDM_EDIT_COPY_BINARY (IDM_EDIT + 48) 133 | #define IDM_EDIT_CUT_BINARY (IDM_EDIT + 49) 134 | #define IDM_EDIT_PASTE_BINARY (IDM_EDIT + 50) 135 | #define IDM_EDIT_CHAR_PANEL (IDM_EDIT + 51) 136 | #define IDM_EDIT_CLIPBOARDHISTORY_PANEL (IDM_EDIT + 52) 137 | #define IDM_EDIT_SW2TAB_LEADING (IDM_EDIT + 53) 138 | #define IDM_EDIT_SW2TAB_ALL (IDM_EDIT + 54) 139 | #define IDM_EDIT_REMOVEEMPTYLINES (IDM_EDIT + 55) 140 | #define IDM_EDIT_REMOVEEMPTYLINESWITHBLANK (IDM_EDIT + 56) 141 | #define IDM_EDIT_BLANKLINEABOVECURRENT (IDM_EDIT + 57) 142 | #define IDM_EDIT_BLANKLINEBELOWCURRENT (IDM_EDIT + 58) 143 | #define IDM_EDIT_SORTLINES_LEXICOGRAPHIC_ASCENDING (IDM_EDIT + 59) 144 | #define IDM_EDIT_SORTLINES_LEXICOGRAPHIC_DESCENDING (IDM_EDIT + 60) 145 | #define IDM_EDIT_SORTLINES_INTEGER_ASCENDING (IDM_EDIT + 61) 146 | #define IDM_EDIT_SORTLINES_INTEGER_DESCENDING (IDM_EDIT + 62) 147 | #define IDM_EDIT_SORTLINES_DECIMALCOMMA_ASCENDING (IDM_EDIT + 63) 148 | #define IDM_EDIT_SORTLINES_DECIMALCOMMA_DESCENDING (IDM_EDIT + 64) 149 | #define IDM_EDIT_SORTLINES_DECIMALDOT_ASCENDING (IDM_EDIT + 65) 150 | #define IDM_EDIT_SORTLINES_DECIMALDOT_DESCENDING (IDM_EDIT + 66) 151 | #define IDM_EDIT_PROPERCASE_FORCE (IDM_EDIT + 67) 152 | #define IDM_EDIT_PROPERCASE_BLEND (IDM_EDIT + 68) 153 | #define IDM_EDIT_SENTENCECASE_FORCE (IDM_EDIT + 69) 154 | #define IDM_EDIT_SENTENCECASE_BLEND (IDM_EDIT + 70) 155 | #define IDM_EDIT_INVERTCASE (IDM_EDIT + 71) 156 | #define IDM_EDIT_RANDOMCASE (IDM_EDIT + 72) 157 | #define IDM_EDIT_OPENASFILE (IDM_EDIT + 73) 158 | #define IDM_EDIT_OPENINFOLDER (IDM_EDIT + 74) 159 | #define IDM_EDIT_SEARCHONINTERNET (IDM_EDIT + 75) 160 | #define IDM_EDIT_CHANGESEARCHENGINE (IDM_EDIT + 76) 161 | #define IDM_EDIT_REMOVE_CONSECUTIVE_DUP_LINES (IDM_EDIT + 77) 162 | #define IDM_EDIT_SORTLINES_RANDOMLY (IDM_EDIT + 78) 163 | #define IDM_EDIT_REMOVE_ANY_DUP_LINES (IDM_EDIT + 79) 164 | #define IDM_EDIT_SORTLINES_LEXICO_CASE_INSENS_ASCENDING (IDM_EDIT + 80) 165 | #define IDM_EDIT_SORTLINES_LEXICO_CASE_INSENS_DESCENDING (IDM_EDIT + 81) 166 | #define IDM_EDIT_COPY_LINK (IDM_EDIT + 82) 167 | #define IDM_EDIT_SORTLINES_REVERSE_ORDER (IDM_EDIT + 83) 168 | #define IDM_EDIT_INSERT_DATETIME_SHORT (IDM_EDIT + 84) 169 | #define IDM_EDIT_INSERT_DATETIME_LONG (IDM_EDIT + 85) 170 | #define IDM_EDIT_INSERT_DATETIME_CUSTOMIZED (IDM_EDIT + 86) 171 | #define IDM_EDIT_COPY_ALL_NAMES (IDM_EDIT + 87) 172 | #define IDM_EDIT_COPY_ALL_PATHS (IDM_EDIT + 88) 173 | 174 | #define IDM_EDIT_AUTOCOMPLETE (50000 + 0) 175 | #define IDM_EDIT_AUTOCOMPLETE_CURRENTFILE (50000 + 1) 176 | #define IDM_EDIT_FUNCCALLTIP (50000 + 2) 177 | #define IDM_EDIT_AUTOCOMPLETE_PATH (50000 + 6) 178 | 179 | 180 | #define IDM_SEARCH (IDM + 3000) 181 | #define IDM_SEARCH_FIND (IDM_SEARCH + 1) 182 | #define IDM_SEARCH_FINDNEXT (IDM_SEARCH + 2) 183 | #define IDM_SEARCH_REPLACE (IDM_SEARCH + 3) 184 | #define IDM_SEARCH_GOTOLINE (IDM_SEARCH + 4) 185 | #define IDM_SEARCH_TOGGLE_BOOKMARK (IDM_SEARCH + 5) 186 | #define IDM_SEARCH_NEXT_BOOKMARK (IDM_SEARCH + 6) 187 | #define IDM_SEARCH_PREV_BOOKMARK (IDM_SEARCH + 7) 188 | #define IDM_SEARCH_CLEAR_BOOKMARKS (IDM_SEARCH + 8) 189 | #define IDM_SEARCH_GOTOMATCHINGBRACE (IDM_SEARCH + 9) 190 | #define IDM_SEARCH_FINDPREV (IDM_SEARCH + 10) 191 | #define IDM_SEARCH_FINDINCREMENT (IDM_SEARCH + 11) 192 | #define IDM_SEARCH_FINDINFILES (IDM_SEARCH + 13) 193 | #define IDM_SEARCH_VOLATILE_FINDNEXT (IDM_SEARCH + 14) 194 | #define IDM_SEARCH_VOLATILE_FINDPREV (IDM_SEARCH + 15) 195 | #define IDM_SEARCH_CUTMARKEDLINES (IDM_SEARCH + 18) 196 | #define IDM_SEARCH_COPYMARKEDLINES (IDM_SEARCH + 19) 197 | #define IDM_SEARCH_PASTEMARKEDLINES (IDM_SEARCH + 20) 198 | #define IDM_SEARCH_DELETEMARKEDLINES (IDM_SEARCH + 21) 199 | #define IDM_SEARCH_MARKALLEXT1 (IDM_SEARCH + 22) 200 | #define IDM_SEARCH_UNMARKALLEXT1 (IDM_SEARCH + 23) 201 | #define IDM_SEARCH_MARKALLEXT2 (IDM_SEARCH + 24) 202 | #define IDM_SEARCH_UNMARKALLEXT2 (IDM_SEARCH + 25) 203 | #define IDM_SEARCH_MARKALLEXT3 (IDM_SEARCH + 26) 204 | #define IDM_SEARCH_UNMARKALLEXT3 (IDM_SEARCH + 27) 205 | #define IDM_SEARCH_MARKALLEXT4 (IDM_SEARCH + 28) 206 | #define IDM_SEARCH_UNMARKALLEXT4 (IDM_SEARCH + 29) 207 | #define IDM_SEARCH_MARKALLEXT5 (IDM_SEARCH + 30) 208 | #define IDM_SEARCH_UNMARKALLEXT5 (IDM_SEARCH + 31) 209 | #define IDM_SEARCH_CLEARALLMARKS (IDM_SEARCH + 32) 210 | 211 | #define IDM_SEARCH_GOPREVMARKER1 (IDM_SEARCH + 33) 212 | #define IDM_SEARCH_GOPREVMARKER2 (IDM_SEARCH + 34) 213 | #define IDM_SEARCH_GOPREVMARKER3 (IDM_SEARCH + 35) 214 | #define IDM_SEARCH_GOPREVMARKER4 (IDM_SEARCH + 36) 215 | #define IDM_SEARCH_GOPREVMARKER5 (IDM_SEARCH + 37) 216 | #define IDM_SEARCH_GOPREVMARKER_DEF (IDM_SEARCH + 38) 217 | 218 | #define IDM_SEARCH_GONEXTMARKER1 (IDM_SEARCH + 39) 219 | #define IDM_SEARCH_GONEXTMARKER2 (IDM_SEARCH + 40) 220 | #define IDM_SEARCH_GONEXTMARKER3 (IDM_SEARCH + 41) 221 | #define IDM_SEARCH_GONEXTMARKER4 (IDM_SEARCH + 42) 222 | #define IDM_SEARCH_GONEXTMARKER5 (IDM_SEARCH + 43) 223 | #define IDM_SEARCH_GONEXTMARKER_DEF (IDM_SEARCH + 44) 224 | 225 | #define IDM_FOCUS_ON_FOUND_RESULTS (IDM_SEARCH + 45) 226 | #define IDM_SEARCH_GOTONEXTFOUND (IDM_SEARCH + 46) 227 | #define IDM_SEARCH_GOTOPREVFOUND (IDM_SEARCH + 47) 228 | 229 | #define IDM_SEARCH_SETANDFINDNEXT (IDM_SEARCH + 48) 230 | #define IDM_SEARCH_SETANDFINDPREV (IDM_SEARCH + 49) 231 | #define IDM_SEARCH_INVERSEMARKS (IDM_SEARCH + 50) 232 | #define IDM_SEARCH_DELETEUNMARKEDLINES (IDM_SEARCH + 51) 233 | #define IDM_SEARCH_FINDCHARINRANGE (IDM_SEARCH + 52) 234 | #define IDM_SEARCH_SELECTMATCHINGBRACES (IDM_SEARCH + 53) 235 | #define IDM_SEARCH_MARK (IDM_SEARCH + 54) 236 | 237 | #define IDM_SEARCH_STYLE1TOCLIP (IDM_SEARCH + 55) 238 | #define IDM_SEARCH_STYLE2TOCLIP (IDM_SEARCH + 56) 239 | #define IDM_SEARCH_STYLE3TOCLIP (IDM_SEARCH + 57) 240 | #define IDM_SEARCH_STYLE4TOCLIP (IDM_SEARCH + 58) 241 | #define IDM_SEARCH_STYLE5TOCLIP (IDM_SEARCH + 59) 242 | #define IDM_SEARCH_ALLSTYLESTOCLIP (IDM_SEARCH + 60) 243 | #define IDM_SEARCH_MARKEDTOCLIP (IDM_SEARCH + 61) 244 | 245 | #define IDM_SEARCH_MARKONEEXT1 (IDM_SEARCH + 62) 246 | #define IDM_SEARCH_MARKONEEXT2 (IDM_SEARCH + 63) 247 | #define IDM_SEARCH_MARKONEEXT3 (IDM_SEARCH + 64) 248 | #define IDM_SEARCH_MARKONEEXT4 (IDM_SEARCH + 65) 249 | #define IDM_SEARCH_MARKONEEXT5 (IDM_SEARCH + 66) 250 | 251 | #define IDM_MISC (IDM + 3500) 252 | #define IDM_DOCLIST_FILESCLOSE (IDM_MISC + 1) 253 | #define IDM_DOCLIST_FILESCLOSEOTHERS (IDM_MISC + 2) 254 | #define IDM_DOCLIST_COPYNAMES (IDM_MISC + 3) 255 | #define IDM_DOCLIST_COPYPATHS (IDM_MISC + 4) 256 | 257 | 258 | #define IDM_VIEW (IDM + 4000) 259 | //#define IDM_VIEW_TOOLBAR_HIDE (IDM_VIEW + 1) 260 | #define IDM_VIEW_TOOLBAR_REDUCE (IDM_VIEW + 2) 261 | #define IDM_VIEW_TOOLBAR_ENLARGE (IDM_VIEW + 3) 262 | #define IDM_VIEW_TOOLBAR_STANDARD (IDM_VIEW + 4) 263 | #define IDM_VIEW_REDUCETABBAR (IDM_VIEW + 5) 264 | #define IDM_VIEW_LOCKTABBAR (IDM_VIEW + 6) 265 | #define IDM_VIEW_DRAWTABBAR_TOPBAR (IDM_VIEW + 7) 266 | #define IDM_VIEW_DRAWTABBAR_INACIVETAB (IDM_VIEW + 8) 267 | #define IDM_VIEW_POSTIT (IDM_VIEW + 9) 268 | #define IDM_VIEW_FOLDALL (IDM_VIEW + 10) 269 | #define IDM_VIEW_DISTRACTIONFREE (IDM_VIEW + 11) 270 | #define IDM_VIEW_LINENUMBER (IDM_VIEW + 12) 271 | #define IDM_VIEW_SYMBOLMARGIN (IDM_VIEW + 13) 272 | #define IDM_VIEW_FOLDERMAGIN (IDM_VIEW + 14) 273 | #define IDM_VIEW_FOLDERMAGIN_SIMPLE (IDM_VIEW + 15) 274 | #define IDM_VIEW_FOLDERMAGIN_ARROW (IDM_VIEW + 16) 275 | #define IDM_VIEW_FOLDERMAGIN_CIRCLE (IDM_VIEW + 17) 276 | #define IDM_VIEW_FOLDERMAGIN_BOX (IDM_VIEW + 18) 277 | #define IDM_VIEW_ALL_CHARACTERS (IDM_VIEW + 19) 278 | #define IDM_VIEW_INDENT_GUIDE (IDM_VIEW + 20) 279 | #define IDM_VIEW_CURLINE_HILITING (IDM_VIEW + 21) 280 | #define IDM_VIEW_WRAP (IDM_VIEW + 22) 281 | #define IDM_VIEW_ZOOMIN (IDM_VIEW + 23) 282 | #define IDM_VIEW_ZOOMOUT (IDM_VIEW + 24) 283 | #define IDM_VIEW_TAB_SPACE (IDM_VIEW + 25) 284 | #define IDM_VIEW_EOL (IDM_VIEW + 26) 285 | #define IDM_VIEW_TOOLBAR_REDUCE_SET2 (IDM_VIEW + 27) 286 | #define IDM_VIEW_TOOLBAR_ENLARGE_SET2 (IDM_VIEW + 28) 287 | #define IDM_VIEW_UNFOLDALL (IDM_VIEW + 29) 288 | #define IDM_VIEW_FOLD_CURRENT (IDM_VIEW + 30) 289 | #define IDM_VIEW_UNFOLD_CURRENT (IDM_VIEW + 31) 290 | #define IDM_VIEW_FULLSCREENTOGGLE (IDM_VIEW + 32) 291 | #define IDM_VIEW_ZOOMRESTORE (IDM_VIEW + 33) 292 | #define IDM_VIEW_ALWAYSONTOP (IDM_VIEW + 34) 293 | #define IDM_VIEW_SYNSCROLLV (IDM_VIEW + 35) 294 | #define IDM_VIEW_SYNSCROLLH (IDM_VIEW + 36) 295 | //#define IDM_VIEW_EDGENONE (IDM_VIEW + 37) 296 | #define IDM_VIEW_DRAWTABBAR_CLOSEBOTTUN (IDM_VIEW + 38) 297 | #define IDM_VIEW_DRAWTABBAR_DBCLK2CLOSE (IDM_VIEW + 39) 298 | #define IDM_VIEW_REFRESHTABAR (IDM_VIEW + 40) 299 | #define IDM_VIEW_WRAP_SYMBOL (IDM_VIEW + 41) 300 | #define IDM_VIEW_HIDELINES (IDM_VIEW + 42) 301 | #define IDM_VIEW_DRAWTABBAR_VERTICAL (IDM_VIEW + 43) 302 | #define IDM_VIEW_DRAWTABBAR_MULTILINE (IDM_VIEW + 44) 303 | #define IDM_VIEW_DOCCHANGEMARGIN (IDM_VIEW + 45) 304 | #define IDM_VIEW_LWDEF (IDM_VIEW + 46) 305 | #define IDM_VIEW_LWALIGN (IDM_VIEW + 47) 306 | #define IDM_VIEW_LWINDENT (IDM_VIEW + 48) 307 | #define IDM_VIEW_SUMMARY (IDM_VIEW + 49) 308 | 309 | #define IDM_VIEW_FOLD (IDM_VIEW + 50) 310 | #define IDM_VIEW_FOLD_1 (IDM_VIEW_FOLD + 1) 311 | #define IDM_VIEW_FOLD_2 (IDM_VIEW_FOLD + 2) 312 | #define IDM_VIEW_FOLD_3 (IDM_VIEW_FOLD + 3) 313 | #define IDM_VIEW_FOLD_4 (IDM_VIEW_FOLD + 4) 314 | #define IDM_VIEW_FOLD_5 (IDM_VIEW_FOLD + 5) 315 | #define IDM_VIEW_FOLD_6 (IDM_VIEW_FOLD + 6) 316 | #define IDM_VIEW_FOLD_7 (IDM_VIEW_FOLD + 7) 317 | #define IDM_VIEW_FOLD_8 (IDM_VIEW_FOLD + 8) 318 | 319 | #define IDM_VIEW_UNFOLD (IDM_VIEW + 60) 320 | #define IDM_VIEW_UNFOLD_1 (IDM_VIEW_UNFOLD + 1) 321 | #define IDM_VIEW_UNFOLD_2 (IDM_VIEW_UNFOLD + 2) 322 | #define IDM_VIEW_UNFOLD_3 (IDM_VIEW_UNFOLD + 3) 323 | #define IDM_VIEW_UNFOLD_4 (IDM_VIEW_UNFOLD + 4) 324 | #define IDM_VIEW_UNFOLD_5 (IDM_VIEW_UNFOLD + 5) 325 | #define IDM_VIEW_UNFOLD_6 (IDM_VIEW_UNFOLD + 6) 326 | #define IDM_VIEW_UNFOLD_7 (IDM_VIEW_UNFOLD + 7) 327 | #define IDM_VIEW_UNFOLD_8 (IDM_VIEW_UNFOLD + 8) 328 | 329 | #define IDM_VIEW_DOCLIST (IDM_VIEW + 70) 330 | #define IDM_VIEW_SWITCHTO_OTHER_VIEW (IDM_VIEW + 72) 331 | #define IDM_EXPORT_FUNC_LIST_AND_QUIT (IDM_VIEW + 73) 332 | 333 | #define IDM_VIEW_DOC_MAP (IDM_VIEW + 80) 334 | 335 | #define IDM_VIEW_PROJECT_PANEL_1 (IDM_VIEW + 81) 336 | #define IDM_VIEW_PROJECT_PANEL_2 (IDM_VIEW + 82) 337 | #define IDM_VIEW_PROJECT_PANEL_3 (IDM_VIEW + 83) 338 | 339 | #define IDM_VIEW_FUNC_LIST (IDM_VIEW + 84) 340 | #define IDM_VIEW_FILEBROWSER (IDM_VIEW + 85) 341 | 342 | #define IDM_VIEW_TAB1 (IDM_VIEW + 86) 343 | #define IDM_VIEW_TAB2 (IDM_VIEW + 87) 344 | #define IDM_VIEW_TAB3 (IDM_VIEW + 88) 345 | #define IDM_VIEW_TAB4 (IDM_VIEW + 89) 346 | #define IDM_VIEW_TAB5 (IDM_VIEW + 90) 347 | #define IDM_VIEW_TAB6 (IDM_VIEW + 91) 348 | #define IDM_VIEW_TAB7 (IDM_VIEW + 92) 349 | #define IDM_VIEW_TAB8 (IDM_VIEW + 93) 350 | #define IDM_VIEW_TAB9 (IDM_VIEW + 94) 351 | #define IDM_VIEW_TAB_NEXT (IDM_VIEW + 95) 352 | #define IDM_VIEW_TAB_PREV (IDM_VIEW + 96) 353 | #define IDM_VIEW_MONITORING (IDM_VIEW + 97) 354 | #define IDM_VIEW_TAB_MOVEFORWARD (IDM_VIEW + 98) 355 | #define IDM_VIEW_TAB_MOVEBACKWARD (IDM_VIEW + 99) 356 | #define IDM_VIEW_IN_FIREFOX (IDM_VIEW + 100) 357 | #define IDM_VIEW_IN_CHROME (IDM_VIEW + 101) 358 | #define IDM_VIEW_IN_EDGE (IDM_VIEW + 102) 359 | #define IDM_VIEW_IN_IE (IDM_VIEW + 103) 360 | 361 | #define IDM_VIEW_SWITCHTO_PROJECT_PANEL_1 (IDM_VIEW + 104) 362 | #define IDM_VIEW_SWITCHTO_PROJECT_PANEL_2 (IDM_VIEW + 105) 363 | #define IDM_VIEW_SWITCHTO_PROJECT_PANEL_3 (IDM_VIEW + 106) 364 | #define IDM_VIEW_SWITCHTO_FILEBROWSER (IDM_VIEW + 107) 365 | #define IDM_VIEW_SWITCHTO_FUNC_LIST (IDM_VIEW + 108) 366 | #define IDM_VIEW_SWITCHTO_DOCLIST (IDM_VIEW + 109) 367 | 368 | #define IDM_VIEW_GOTO_ANOTHER_VIEW 10001 369 | #define IDM_VIEW_CLONE_TO_ANOTHER_VIEW 10002 370 | #define IDM_VIEW_GOTO_NEW_INSTANCE 10003 371 | #define IDM_VIEW_LOAD_IN_NEW_INSTANCE 10004 372 | 373 | 374 | #define IDM_FORMAT (IDM + 5000) 375 | #define IDM_FORMAT_TODOS (IDM_FORMAT + 1) 376 | #define IDM_FORMAT_TOUNIX (IDM_FORMAT + 2) 377 | #define IDM_FORMAT_TOMAC (IDM_FORMAT + 3) 378 | #define IDM_FORMAT_ANSI (IDM_FORMAT + 4) 379 | #define IDM_FORMAT_UTF_8 (IDM_FORMAT + 5) 380 | #define IDM_FORMAT_UTF_16BE (IDM_FORMAT + 6) 381 | #define IDM_FORMAT_UTF_16LE (IDM_FORMAT + 7) 382 | #define IDM_FORMAT_AS_UTF_8 (IDM_FORMAT + 8) 383 | #define IDM_FORMAT_CONV2_ANSI (IDM_FORMAT + 9) 384 | #define IDM_FORMAT_CONV2_AS_UTF_8 (IDM_FORMAT + 10) 385 | #define IDM_FORMAT_CONV2_UTF_8 (IDM_FORMAT + 11) 386 | #define IDM_FORMAT_CONV2_UTF_16BE (IDM_FORMAT + 12) 387 | #define IDM_FORMAT_CONV2_UTF_16LE (IDM_FORMAT + 13) 388 | 389 | #define IDM_FORMAT_ENCODE (IDM_FORMAT + 20) 390 | #define IDM_FORMAT_WIN_1250 (IDM_FORMAT_ENCODE + 0) 391 | #define IDM_FORMAT_WIN_1251 (IDM_FORMAT_ENCODE + 1) 392 | #define IDM_FORMAT_WIN_1252 (IDM_FORMAT_ENCODE + 2) 393 | #define IDM_FORMAT_WIN_1253 (IDM_FORMAT_ENCODE + 3) 394 | #define IDM_FORMAT_WIN_1254 (IDM_FORMAT_ENCODE + 4) 395 | #define IDM_FORMAT_WIN_1255 (IDM_FORMAT_ENCODE + 5) 396 | #define IDM_FORMAT_WIN_1256 (IDM_FORMAT_ENCODE + 6) 397 | #define IDM_FORMAT_WIN_1257 (IDM_FORMAT_ENCODE + 7) 398 | #define IDM_FORMAT_WIN_1258 (IDM_FORMAT_ENCODE + 8) 399 | #define IDM_FORMAT_ISO_8859_1 (IDM_FORMAT_ENCODE + 9) 400 | #define IDM_FORMAT_ISO_8859_2 (IDM_FORMAT_ENCODE + 10) 401 | #define IDM_FORMAT_ISO_8859_3 (IDM_FORMAT_ENCODE + 11) 402 | #define IDM_FORMAT_ISO_8859_4 (IDM_FORMAT_ENCODE + 12) 403 | #define IDM_FORMAT_ISO_8859_5 (IDM_FORMAT_ENCODE + 13) 404 | #define IDM_FORMAT_ISO_8859_6 (IDM_FORMAT_ENCODE + 14) 405 | #define IDM_FORMAT_ISO_8859_7 (IDM_FORMAT_ENCODE + 15) 406 | #define IDM_FORMAT_ISO_8859_8 (IDM_FORMAT_ENCODE + 16) 407 | #define IDM_FORMAT_ISO_8859_9 (IDM_FORMAT_ENCODE + 17) 408 | //#define IDM_FORMAT_ISO_8859_10 (IDM_FORMAT_ENCODE + 18) 409 | //#define IDM_FORMAT_ISO_8859_11 (IDM_FORMAT_ENCODE + 19) 410 | #define IDM_FORMAT_ISO_8859_13 (IDM_FORMAT_ENCODE + 20) 411 | #define IDM_FORMAT_ISO_8859_14 (IDM_FORMAT_ENCODE + 21) 412 | #define IDM_FORMAT_ISO_8859_15 (IDM_FORMAT_ENCODE + 22) 413 | //#define IDM_FORMAT_ISO_8859_16 (IDM_FORMAT_ENCODE + 23) 414 | #define IDM_FORMAT_DOS_437 (IDM_FORMAT_ENCODE + 24) 415 | #define IDM_FORMAT_DOS_720 (IDM_FORMAT_ENCODE + 25) 416 | #define IDM_FORMAT_DOS_737 (IDM_FORMAT_ENCODE + 26) 417 | #define IDM_FORMAT_DOS_775 (IDM_FORMAT_ENCODE + 27) 418 | #define IDM_FORMAT_DOS_850 (IDM_FORMAT_ENCODE + 28) 419 | #define IDM_FORMAT_DOS_852 (IDM_FORMAT_ENCODE + 29) 420 | #define IDM_FORMAT_DOS_855 (IDM_FORMAT_ENCODE + 30) 421 | #define IDM_FORMAT_DOS_857 (IDM_FORMAT_ENCODE + 31) 422 | #define IDM_FORMAT_DOS_858 (IDM_FORMAT_ENCODE + 32) 423 | #define IDM_FORMAT_DOS_860 (IDM_FORMAT_ENCODE + 33) 424 | #define IDM_FORMAT_DOS_861 (IDM_FORMAT_ENCODE + 34) 425 | #define IDM_FORMAT_DOS_862 (IDM_FORMAT_ENCODE + 35) 426 | #define IDM_FORMAT_DOS_863 (IDM_FORMAT_ENCODE + 36) 427 | #define IDM_FORMAT_DOS_865 (IDM_FORMAT_ENCODE + 37) 428 | #define IDM_FORMAT_DOS_866 (IDM_FORMAT_ENCODE + 38) 429 | #define IDM_FORMAT_DOS_869 (IDM_FORMAT_ENCODE + 39) 430 | #define IDM_FORMAT_BIG5 (IDM_FORMAT_ENCODE + 40) 431 | #define IDM_FORMAT_GB2312 (IDM_FORMAT_ENCODE + 41) 432 | #define IDM_FORMAT_SHIFT_JIS (IDM_FORMAT_ENCODE + 42) 433 | #define IDM_FORMAT_KOREAN_WIN (IDM_FORMAT_ENCODE + 43) 434 | #define IDM_FORMAT_EUC_KR (IDM_FORMAT_ENCODE + 44) 435 | #define IDM_FORMAT_TIS_620 (IDM_FORMAT_ENCODE + 45) 436 | #define IDM_FORMAT_MAC_CYRILLIC (IDM_FORMAT_ENCODE + 46) 437 | #define IDM_FORMAT_KOI8U_CYRILLIC (IDM_FORMAT_ENCODE + 47) 438 | #define IDM_FORMAT_KOI8R_CYRILLIC (IDM_FORMAT_ENCODE + 48) 439 | #define IDM_FORMAT_ENCODE_END IDM_FORMAT_KOI8R_CYRILLIC 440 | 441 | //#define IDM_FORMAT_CONVERT 200 442 | 443 | #define IDM_LANG (IDM + 6000) 444 | #define IDM_LANGSTYLE_CONFIG_DLG (IDM_LANG + 1) 445 | #define IDM_LANG_C (IDM_LANG + 2) 446 | #define IDM_LANG_CPP (IDM_LANG + 3) 447 | #define IDM_LANG_JAVA (IDM_LANG + 4) 448 | #define IDM_LANG_HTML (IDM_LANG + 5) 449 | #define IDM_LANG_XML (IDM_LANG + 6) 450 | #define IDM_LANG_JS (IDM_LANG + 7) 451 | #define IDM_LANG_PHP (IDM_LANG + 8) 452 | #define IDM_LANG_ASP (IDM_LANG + 9) 453 | #define IDM_LANG_CSS (IDM_LANG + 10) 454 | #define IDM_LANG_PASCAL (IDM_LANG + 11) 455 | #define IDM_LANG_PYTHON (IDM_LANG + 12) 456 | #define IDM_LANG_PERL (IDM_LANG + 13) 457 | #define IDM_LANG_OBJC (IDM_LANG + 14) 458 | #define IDM_LANG_ASCII (IDM_LANG + 15) 459 | #define IDM_LANG_TEXT (IDM_LANG + 16) 460 | #define IDM_LANG_RC (IDM_LANG + 17) 461 | #define IDM_LANG_MAKEFILE (IDM_LANG + 18) 462 | #define IDM_LANG_INI (IDM_LANG + 19) 463 | #define IDM_LANG_SQL (IDM_LANG + 20) 464 | #define IDM_LANG_VB (IDM_LANG + 21) 465 | #define IDM_LANG_BATCH (IDM_LANG + 22) 466 | #define IDM_LANG_CS (IDM_LANG + 23) 467 | #define IDM_LANG_LUA (IDM_LANG + 24) 468 | #define IDM_LANG_TEX (IDM_LANG + 25) 469 | #define IDM_LANG_FORTRAN (IDM_LANG + 26) 470 | #define IDM_LANG_BASH (IDM_LANG + 27) 471 | #define IDM_LANG_FLASH (IDM_LANG + 28) 472 | #define IDM_LANG_NSIS (IDM_LANG + 29) 473 | #define IDM_LANG_TCL (IDM_LANG + 30) 474 | #define IDM_LANG_LISP (IDM_LANG + 31) 475 | #define IDM_LANG_SCHEME (IDM_LANG + 32) 476 | #define IDM_LANG_ASM (IDM_LANG + 33) 477 | #define IDM_LANG_DIFF (IDM_LANG + 34) 478 | #define IDM_LANG_PROPS (IDM_LANG + 35) 479 | #define IDM_LANG_PS (IDM_LANG + 36) 480 | #define IDM_LANG_RUBY (IDM_LANG + 37) 481 | #define IDM_LANG_SMALLTALK (IDM_LANG + 38) 482 | #define IDM_LANG_VHDL (IDM_LANG + 39) 483 | #define IDM_LANG_CAML (IDM_LANG + 40) 484 | #define IDM_LANG_KIX (IDM_LANG + 41) 485 | #define IDM_LANG_ADA (IDM_LANG + 42) 486 | #define IDM_LANG_VERILOG (IDM_LANG + 43) 487 | #define IDM_LANG_AU3 (IDM_LANG + 44) 488 | #define IDM_LANG_MATLAB (IDM_LANG + 45) 489 | #define IDM_LANG_HASKELL (IDM_LANG + 46) 490 | #define IDM_LANG_INNO (IDM_LANG + 47) 491 | #define IDM_LANG_CMAKE (IDM_LANG + 48) 492 | #define IDM_LANG_YAML (IDM_LANG + 49) 493 | #define IDM_LANG_COBOL (IDM_LANG + 50) 494 | #define IDM_LANG_D (IDM_LANG + 51) 495 | #define IDM_LANG_GUI4CLI (IDM_LANG + 52) 496 | #define IDM_LANG_POWERSHELL (IDM_LANG + 53) 497 | #define IDM_LANG_R (IDM_LANG + 54) 498 | #define IDM_LANG_JSP (IDM_LANG + 55) 499 | #define IDM_LANG_COFFEESCRIPT (IDM_LANG + 56) 500 | #define IDM_LANG_JSON (IDM_LANG + 57) 501 | #define IDM_LANG_FORTRAN_77 (IDM_LANG + 58) 502 | #define IDM_LANG_BAANC (IDM_LANG + 59) 503 | #define IDM_LANG_SREC (IDM_LANG + 60) 504 | #define IDM_LANG_IHEX (IDM_LANG + 61) 505 | #define IDM_LANG_TEHEX (IDM_LANG + 62) 506 | #define IDM_LANG_SWIFT (IDM_LANG + 63) 507 | #define IDM_LANG_ASN1 (IDM_LANG + 64) 508 | #define IDM_LANG_AVS (IDM_LANG + 65) 509 | #define IDM_LANG_BLITZBASIC (IDM_LANG + 66) 510 | #define IDM_LANG_PUREBASIC (IDM_LANG + 67) 511 | #define IDM_LANG_FREEBASIC (IDM_LANG + 68) 512 | #define IDM_LANG_CSOUND (IDM_LANG + 69) 513 | #define IDM_LANG_ERLANG (IDM_LANG + 70) 514 | #define IDM_LANG_ESCRIPT (IDM_LANG + 71) 515 | #define IDM_LANG_FORTH (IDM_LANG + 72) 516 | #define IDM_LANG_LATEX (IDM_LANG + 73) 517 | #define IDM_LANG_MMIXAL (IDM_LANG + 74) 518 | #define IDM_LANG_NIM (IDM_LANG + 75) 519 | #define IDM_LANG_NNCRONTAB (IDM_LANG + 76) 520 | #define IDM_LANG_OSCRIPT (IDM_LANG + 77) 521 | #define IDM_LANG_REBOL (IDM_LANG + 78) 522 | #define IDM_LANG_REGISTRY (IDM_LANG + 79) 523 | #define IDM_LANG_RUST (IDM_LANG + 80) 524 | #define IDM_LANG_SPICE (IDM_LANG + 81) 525 | #define IDM_LANG_TXT2TAGS (IDM_LANG + 82) 526 | #define IDM_LANG_VISUALPROLOG (IDM_LANG + 83) 527 | #define IDM_LANG_TYPESCRIPT (IDM_LANG + 84) 528 | 529 | #define IDM_LANG_EXTERNAL (IDM_LANG + 165) 530 | #define IDM_LANG_EXTERNAL_LIMIT (IDM_LANG + 179) 531 | 532 | #define IDM_LANG_USER (IDM_LANG + 180) //46180: Used for translation 533 | #define IDM_LANG_USER_LIMIT (IDM_LANG + 210) //46210: Ajust with IDM_LANG_USER 534 | #define IDM_LANG_USER_DLG (IDM_LANG + 250) //46250: Used for translation 535 | #define IDM_LANG_OPENUDLDIR (IDM_LANG + 300) 536 | #define IDM_LANG_UDLCOLLECTION_PROJECT_SITE (IDM_LANG + 301) 537 | 538 | 539 | 540 | #define IDM_ABOUT (IDM + 7000) 541 | #define IDM_HOMESWEETHOME (IDM_ABOUT + 1) 542 | #define IDM_PROJECTPAGE (IDM_ABOUT + 2) 543 | #define IDM_ONLINEDOCUMENT (IDM_ABOUT + 3) 544 | #define IDM_FORUM (IDM_ABOUT + 4) 545 | //#define IDM_PLUGINSHOME (IDM_ABOUT + 5) 546 | #define IDM_UPDATE_NPP (IDM_ABOUT + 6) 547 | #define IDM_WIKIFAQ (IDM_ABOUT + 7) 548 | //#define IDM_HELP (IDM_ABOUT + 8) 549 | #define IDM_CONFUPDATERPROXY (IDM_ABOUT + 9) 550 | #define IDM_CMDLINEARGUMENTS (IDM_ABOUT + 10) 551 | //#define IDM_ONLINESUPPORT (IDM_ABOUT + 11) 552 | #define IDM_DEBUGINFO (IDM_ABOUT + 12) 553 | 554 | 555 | #define IDM_SETTING (IDM + 8000) 556 | // #define IDM_SETTING_TAB_SIZE (IDM_SETTING + 1) 557 | // #define IDM_SETTING_TAB_REPLCESPACE (IDM_SETTING + 2) 558 | // #define IDM_SETTING_HISTORY_SIZE (IDM_SETTING + 3) 559 | // #define IDM_SETTING_EDGE_SIZE (IDM_SETTING + 4) 560 | #define IDM_SETTING_IMPORTPLUGIN (IDM_SETTING + 5) 561 | #define IDM_SETTING_IMPORTSTYLETHEMS (IDM_SETTING + 6) 562 | #define IDM_SETTING_TRAYICON (IDM_SETTING + 8) 563 | #define IDM_SETTING_SHORTCUT_MAPPER (IDM_SETTING + 9) 564 | #define IDM_SETTING_REMEMBER_LAST_SESSION (IDM_SETTING + 10) 565 | #define IDM_SETTING_PREFERENCE (IDM_SETTING + 11) 566 | #define IDM_SETTING_OPENPLUGINSDIR (IDM_SETTING + 14) 567 | #define IDM_SETTING_PLUGINADM (IDM_SETTING + 15) 568 | #define IDM_SETTING_SHORTCUT_MAPPER_MACRO (IDM_SETTING + 16) 569 | #define IDM_SETTING_SHORTCUT_MAPPER_RUN (IDM_SETTING + 17) 570 | #define IDM_SETTING_EDITCONTEXTMENU (IDM_SETTING + 18) 571 | 572 | #define IDM_TOOL (IDM + 8500) 573 | #define IDM_TOOL_MD5_GENERATE (IDM_TOOL + 1) 574 | #define IDM_TOOL_MD5_GENERATEFROMFILE (IDM_TOOL + 2) 575 | #define IDM_TOOL_MD5_GENERATEINTOCLIPBOARD (IDM_TOOL + 3) 576 | #define IDM_TOOL_SHA256_GENERATE (IDM_TOOL + 4) 577 | #define IDM_TOOL_SHA256_GENERATEFROMFILE (IDM_TOOL + 5) 578 | #define IDM_TOOL_SHA256_GENERATEINTOCLIPBOARD (IDM_TOOL + 6) 579 | 580 | #define IDM_EXECUTE (IDM + 9000) 581 | 582 | #define IDM_SYSTRAYPOPUP (IDM + 3100) 583 | #define IDM_SYSTRAYPOPUP_ACTIVATE (IDM_SYSTRAYPOPUP + 1) 584 | #define IDM_SYSTRAYPOPUP_NEWDOC (IDM_SYSTRAYPOPUP + 2) 585 | #define IDM_SYSTRAYPOPUP_NEW_AND_PASTE (IDM_SYSTRAYPOPUP + 3) 586 | #define IDM_SYSTRAYPOPUP_OPENFILE (IDM_SYSTRAYPOPUP + 4) 587 | #define IDM_SYSTRAYPOPUP_CLOSE (IDM_SYSTRAYPOPUP + 5) 588 | 589 | #define IDR_WINDOWS_MENU 11000 590 | #define IDM_WINDOW_WINDOWS (IDR_WINDOWS_MENU + 1) 591 | #define IDM_WINDOW_SORT_FN_ASC (IDR_WINDOWS_MENU + 2) 592 | #define IDM_WINDOW_SORT_FN_DSC (IDR_WINDOWS_MENU + 3) 593 | #define IDM_WINDOW_SORT_FP_ASC (IDR_WINDOWS_MENU + 4) 594 | #define IDM_WINDOW_SORT_FP_DSC (IDR_WINDOWS_MENU + 5) 595 | #define IDM_WINDOW_SORT_FT_ASC (IDR_WINDOWS_MENU + 6) 596 | #define IDM_WINDOW_SORT_FT_DSC (IDR_WINDOWS_MENU + 7) 597 | #define IDM_WINDOW_SORT_FS_ASC (IDR_WINDOWS_MENU + 8) 598 | #define IDM_WINDOW_SORT_FS_DSC (IDR_WINDOWS_MENU + 9) 599 | #define IDM_WINDOW_MRU_FIRST (IDR_WINDOWS_MENU + 20) 600 | #define IDM_WINDOW_MRU_LIMIT (IDR_WINDOWS_MENU + 59) 601 | #define IDM_WINDOW_COPY_NAME (IDM_WINDOW_MRU_LIMIT + 1) 602 | #define IDM_WINDOW_COPY_PATH (IDM_WINDOW_MRU_LIMIT + 2) 603 | 604 | #define IDR_DROPLIST_MENU 14000 605 | #define IDM_DROPLIST_LIST (IDR_DROPLIST_MENU + 1) 606 | #define IDM_DROPLIST_MRU_FIRST (IDR_DROPLIST_MENU + 20) 607 | -------------------------------------------------------------------------------- /Plugin/Npp/Scintilla.h: -------------------------------------------------------------------------------- 1 | /* Scintilla source code edit control */ 2 | /** @file Scintilla.h 3 | ** Interface to the edit control. 4 | **/ 5 | /* Copyright 1998-2003 by Neil Hodgson 6 | * The License.txt file describes the conditions under which this software may be distributed. */ 7 | 8 | /* Most of this file is automatically generated from the Scintilla.iface interface definition 9 | * file which contains any comments about the definitions. HFacer.py does the generation. */ 10 | 11 | #ifndef SCINTILLA_H 12 | #define SCINTILLA_H 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | #if defined(_WIN32) 19 | /* Return false on failure: */ 20 | int Scintilla_RegisterClasses(void *hInstance); 21 | int Scintilla_ReleaseResources(void); 22 | #endif 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif 27 | 28 | // Include header that defines basic numeric types. 29 | #include 30 | 31 | // Define uptr_t, an unsigned integer type large enough to hold a pointer. 32 | typedef uintptr_t uptr_t; 33 | // Define sptr_t, a signed integer large enough to hold a pointer. 34 | typedef intptr_t sptr_t; 35 | 36 | #include "Sci_Position.h" 37 | 38 | typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam); 39 | typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam, int *pStatus); 40 | 41 | #ifndef SCI_DISABLE_AUTOGENERATED 42 | 43 | /* ++Autogenerated -- start of section automatically generated from Scintilla.iface */ 44 | #define INVALID_POSITION -1 45 | #define SCI_START 2000 46 | #define SCI_OPTIONAL_START 3000 47 | #define SCI_LEXER_START 4000 48 | #define SCI_ADDTEXT 2001 49 | #define SCI_ADDSTYLEDTEXT 2002 50 | #define SCI_INSERTTEXT 2003 51 | #define SCI_CHANGEINSERTION 2672 52 | #define SCI_CLEARALL 2004 53 | #define SCI_DELETERANGE 2645 54 | #define SCI_CLEARDOCUMENTSTYLE 2005 55 | #define SCI_GETLENGTH 2006 56 | #define SCI_GETCHARAT 2007 57 | #define SCI_GETCURRENTPOS 2008 58 | #define SCI_GETANCHOR 2009 59 | #define SCI_GETSTYLEAT 2010 60 | #define SCI_GETSTYLEINDEXAT 2038 61 | #define SCI_REDO 2011 62 | #define SCI_SETUNDOCOLLECTION 2012 63 | #define SCI_SELECTALL 2013 64 | #define SCI_SETSAVEPOINT 2014 65 | #define SCI_GETSTYLEDTEXT 2015 66 | #define SCI_CANREDO 2016 67 | #define SCI_MARKERLINEFROMHANDLE 2017 68 | #define SCI_MARKERDELETEHANDLE 2018 69 | #define SCI_MARKERHANDLEFROMLINE 2732 70 | #define SCI_MARKERNUMBERFROMLINE 2733 71 | #define SCI_GETUNDOCOLLECTION 2019 72 | #define SCWS_INVISIBLE 0 73 | #define SCWS_VISIBLEALWAYS 1 74 | #define SCWS_VISIBLEAFTERINDENT 2 75 | #define SCWS_VISIBLEONLYININDENT 3 76 | #define SCI_GETVIEWWS 2020 77 | #define SCI_SETVIEWWS 2021 78 | #define SCTD_LONGARROW 0 79 | #define SCTD_STRIKEOUT 1 80 | #define SCI_GETTABDRAWMODE 2698 81 | #define SCI_SETTABDRAWMODE 2699 82 | #define SCI_POSITIONFROMPOINT 2022 83 | #define SCI_POSITIONFROMPOINTCLOSE 2023 84 | #define SCI_GOTOLINE 2024 85 | #define SCI_GOTOPOS 2025 86 | #define SCI_SETANCHOR 2026 87 | #define SCI_GETCURLINE 2027 88 | #define SCI_GETENDSTYLED 2028 89 | #define SC_EOL_CRLF 0 90 | #define SC_EOL_CR 1 91 | #define SC_EOL_LF 2 92 | #define SCI_CONVERTEOLS 2029 93 | #define SCI_GETEOLMODE 2030 94 | #define SCI_SETEOLMODE 2031 95 | #define SCI_STARTSTYLING 2032 96 | #define SCI_SETSTYLING 2033 97 | #define SCI_GETBUFFEREDDRAW 2034 98 | #define SCI_SETBUFFEREDDRAW 2035 99 | #define SCI_SETTABWIDTH 2036 100 | #define SCI_GETTABWIDTH 2121 101 | #define SCI_SETTABMINIMUMWIDTH 2724 102 | #define SCI_GETTABMINIMUMWIDTH 2725 103 | #define SCI_CLEARTABSTOPS 2675 104 | #define SCI_ADDTABSTOP 2676 105 | #define SCI_GETNEXTTABSTOP 2677 106 | #define SC_CP_UTF8 65001 107 | #define SCI_SETCODEPAGE 2037 108 | #define SCI_SETFONTLOCALE 2760 109 | #define SCI_GETFONTLOCALE 2761 110 | #define SC_IME_WINDOWED 0 111 | #define SC_IME_INLINE 1 112 | #define SCI_GETIMEINTERACTION 2678 113 | #define SCI_SETIMEINTERACTION 2679 114 | #define SC_ALPHA_TRANSPARENT 0 115 | #define SC_ALPHA_OPAQUE 255 116 | #define SC_ALPHA_NOALPHA 256 117 | #define SC_CURSORNORMAL -1 118 | #define SC_CURSORARROW 2 119 | #define SC_CURSORWAIT 4 120 | #define SC_CURSORREVERSEARROW 7 121 | #define MARKER_MAX 31 122 | #define SC_MARK_CIRCLE 0 123 | #define SC_MARK_ROUNDRECT 1 124 | #define SC_MARK_ARROW 2 125 | #define SC_MARK_SMALLRECT 3 126 | #define SC_MARK_SHORTARROW 4 127 | #define SC_MARK_EMPTY 5 128 | #define SC_MARK_ARROWDOWN 6 129 | #define SC_MARK_MINUS 7 130 | #define SC_MARK_PLUS 8 131 | #define SC_MARK_VLINE 9 132 | #define SC_MARK_LCORNER 10 133 | #define SC_MARK_TCORNER 11 134 | #define SC_MARK_BOXPLUS 12 135 | #define SC_MARK_BOXPLUSCONNECTED 13 136 | #define SC_MARK_BOXMINUS 14 137 | #define SC_MARK_BOXMINUSCONNECTED 15 138 | #define SC_MARK_LCORNERCURVE 16 139 | #define SC_MARK_TCORNERCURVE 17 140 | #define SC_MARK_CIRCLEPLUS 18 141 | #define SC_MARK_CIRCLEPLUSCONNECTED 19 142 | #define SC_MARK_CIRCLEMINUS 20 143 | #define SC_MARK_CIRCLEMINUSCONNECTED 21 144 | #define SC_MARK_BACKGROUND 22 145 | #define SC_MARK_DOTDOTDOT 23 146 | #define SC_MARK_ARROWS 24 147 | #define SC_MARK_PIXMAP 25 148 | #define SC_MARK_FULLRECT 26 149 | #define SC_MARK_LEFTRECT 27 150 | #define SC_MARK_AVAILABLE 28 151 | #define SC_MARK_UNDERLINE 29 152 | #define SC_MARK_RGBAIMAGE 30 153 | #define SC_MARK_BOOKMARK 31 154 | #define SC_MARK_VERTICALBOOKMARK 32 155 | #define SC_MARK_CHARACTER 10000 156 | #define SC_MARKNUM_FOLDEREND 25 157 | #define SC_MARKNUM_FOLDEROPENMID 26 158 | #define SC_MARKNUM_FOLDERMIDTAIL 27 159 | #define SC_MARKNUM_FOLDERTAIL 28 160 | #define SC_MARKNUM_FOLDERSUB 29 161 | #define SC_MARKNUM_FOLDER 30 162 | #define SC_MARKNUM_FOLDEROPEN 31 163 | #define SC_MASK_FOLDERS 0xFE000000 164 | #define SCI_MARKERDEFINE 2040 165 | #define SCI_MARKERSETFORE 2041 166 | #define SCI_MARKERSETBACK 2042 167 | #define SCI_MARKERSETBACKSELECTED 2292 168 | #define SCI_MARKERSETFORETRANSLUCENT 2294 169 | #define SCI_MARKERSETBACKTRANSLUCENT 2295 170 | #define SCI_MARKERSETBACKSELECTEDTRANSLUCENT 2296 171 | #define SCI_MARKERSETSTROKEWIDTH 2297 172 | #define SCI_MARKERENABLEHIGHLIGHT 2293 173 | #define SCI_MARKERADD 2043 174 | #define SCI_MARKERDELETE 2044 175 | #define SCI_MARKERDELETEALL 2045 176 | #define SCI_MARKERGET 2046 177 | #define SCI_MARKERNEXT 2047 178 | #define SCI_MARKERPREVIOUS 2048 179 | #define SCI_MARKERDEFINEPIXMAP 2049 180 | #define SCI_MARKERADDSET 2466 181 | #define SCI_MARKERSETALPHA 2476 182 | #define SCI_MARKERGETLAYER 2734 183 | #define SCI_MARKERSETLAYER 2735 184 | #define SC_MAX_MARGIN 4 185 | #define SC_MARGIN_SYMBOL 0 186 | #define SC_MARGIN_NUMBER 1 187 | #define SC_MARGIN_BACK 2 188 | #define SC_MARGIN_FORE 3 189 | #define SC_MARGIN_TEXT 4 190 | #define SC_MARGIN_RTEXT 5 191 | #define SC_MARGIN_COLOUR 6 192 | #define SCI_SETMARGINTYPEN 2240 193 | #define SCI_GETMARGINTYPEN 2241 194 | #define SCI_SETMARGINWIDTHN 2242 195 | #define SCI_GETMARGINWIDTHN 2243 196 | #define SCI_SETMARGINMASKN 2244 197 | #define SCI_GETMARGINMASKN 2245 198 | #define SCI_SETMARGINSENSITIVEN 2246 199 | #define SCI_GETMARGINSENSITIVEN 2247 200 | #define SCI_SETMARGINCURSORN 2248 201 | #define SCI_GETMARGINCURSORN 2249 202 | #define SCI_SETMARGINBACKN 2250 203 | #define SCI_GETMARGINBACKN 2251 204 | #define SCI_SETMARGINS 2252 205 | #define SCI_GETMARGINS 2253 206 | #define STYLE_DEFAULT 32 207 | #define STYLE_LINENUMBER 33 208 | #define STYLE_BRACELIGHT 34 209 | #define STYLE_BRACEBAD 35 210 | #define STYLE_CONTROLCHAR 36 211 | #define STYLE_INDENTGUIDE 37 212 | #define STYLE_CALLTIP 38 213 | #define STYLE_FOLDDISPLAYTEXT 39 214 | #define STYLE_LASTPREDEFINED 39 215 | #define STYLE_MAX 255 216 | #define SC_CHARSET_ANSI 0 217 | #define SC_CHARSET_DEFAULT 1 218 | #define SC_CHARSET_BALTIC 186 219 | #define SC_CHARSET_CHINESEBIG5 136 220 | #define SC_CHARSET_EASTEUROPE 238 221 | #define SC_CHARSET_GB2312 134 222 | #define SC_CHARSET_GREEK 161 223 | #define SC_CHARSET_HANGUL 129 224 | #define SC_CHARSET_MAC 77 225 | #define SC_CHARSET_OEM 255 226 | #define SC_CHARSET_RUSSIAN 204 227 | #define SC_CHARSET_OEM866 866 228 | #define SC_CHARSET_CYRILLIC 1251 229 | #define SC_CHARSET_SHIFTJIS 128 230 | #define SC_CHARSET_SYMBOL 2 231 | #define SC_CHARSET_TURKISH 162 232 | #define SC_CHARSET_JOHAB 130 233 | #define SC_CHARSET_HEBREW 177 234 | #define SC_CHARSET_ARABIC 178 235 | #define SC_CHARSET_VIETNAMESE 163 236 | #define SC_CHARSET_THAI 222 237 | #define SC_CHARSET_8859_15 1000 238 | #define SCI_STYLECLEARALL 2050 239 | #define SCI_STYLESETFORE 2051 240 | #define SCI_STYLESETBACK 2052 241 | #define SCI_STYLESETBOLD 2053 242 | #define SCI_STYLESETITALIC 2054 243 | #define SCI_STYLESETSIZE 2055 244 | #define SCI_STYLESETFONT 2056 245 | #define SCI_STYLESETEOLFILLED 2057 246 | #define SCI_STYLERESETDEFAULT 2058 247 | #define SCI_STYLESETUNDERLINE 2059 248 | #define SC_CASE_MIXED 0 249 | #define SC_CASE_UPPER 1 250 | #define SC_CASE_LOWER 2 251 | #define SC_CASE_CAMEL 3 252 | #define SCI_STYLEGETFORE 2481 253 | #define SCI_STYLEGETBACK 2482 254 | #define SCI_STYLEGETBOLD 2483 255 | #define SCI_STYLEGETITALIC 2484 256 | #define SCI_STYLEGETSIZE 2485 257 | #define SCI_STYLEGETFONT 2486 258 | #define SCI_STYLEGETEOLFILLED 2487 259 | #define SCI_STYLEGETUNDERLINE 2488 260 | #define SCI_STYLEGETCASE 2489 261 | #define SCI_STYLEGETCHARACTERSET 2490 262 | #define SCI_STYLEGETVISIBLE 2491 263 | #define SCI_STYLEGETCHANGEABLE 2492 264 | #define SCI_STYLEGETHOTSPOT 2493 265 | #define SCI_STYLESETCASE 2060 266 | #define SC_FONT_SIZE_MULTIPLIER 100 267 | #define SCI_STYLESETSIZEFRACTIONAL 2061 268 | #define SCI_STYLEGETSIZEFRACTIONAL 2062 269 | #define SC_WEIGHT_NORMAL 400 270 | #define SC_WEIGHT_SEMIBOLD 600 271 | #define SC_WEIGHT_BOLD 700 272 | #define SCI_STYLESETWEIGHT 2063 273 | #define SCI_STYLEGETWEIGHT 2064 274 | #define SCI_STYLESETCHARACTERSET 2066 275 | #define SCI_STYLESETHOTSPOT 2409 276 | #define SCI_STYLESETCHECKMONOSPACED 2254 277 | #define SCI_STYLEGETCHECKMONOSPACED 2255 278 | #define SC_ELEMENT_LIST 0 279 | #define SC_ELEMENT_LIST_BACK 1 280 | #define SC_ELEMENT_LIST_SELECTED 2 281 | #define SC_ELEMENT_LIST_SELECTED_BACK 3 282 | #define SC_ELEMENT_SELECTION_TEXT 10 283 | #define SC_ELEMENT_SELECTION_BACK 11 284 | #define SC_ELEMENT_SELECTION_ADDITIONAL_TEXT 12 285 | #define SC_ELEMENT_SELECTION_ADDITIONAL_BACK 13 286 | #define SC_ELEMENT_SELECTION_SECONDARY_TEXT 14 287 | #define SC_ELEMENT_SELECTION_SECONDARY_BACK 15 288 | #define SC_ELEMENT_SELECTION_INACTIVE_TEXT 16 289 | #define SC_ELEMENT_SELECTION_INACTIVE_BACK 17 290 | #define SC_ELEMENT_CARET 40 291 | #define SC_ELEMENT_CARET_ADDITIONAL 41 292 | #define SC_ELEMENT_CARET_LINE_BACK 50 293 | #define SC_ELEMENT_WHITE_SPACE 60 294 | #define SC_ELEMENT_WHITE_SPACE_BACK 61 295 | #define SC_ELEMENT_HOT_SPOT_ACTIVE 70 296 | #define SC_ELEMENT_HOT_SPOT_ACTIVE_BACK 71 297 | #define SC_ELEMENT_FOLD_LINE 80 298 | #define SC_ELEMENT_HIDDEN_LINE 81 299 | #define SCI_SETELEMENTCOLOUR 2753 300 | #define SCI_GETELEMENTCOLOUR 2754 301 | #define SCI_RESETELEMENTCOLOUR 2755 302 | #define SCI_GETELEMENTISSET 2756 303 | #define SCI_GETELEMENTALLOWSTRANSLUCENT 2757 304 | #define SCI_GETELEMENTBASECOLOUR 2758 305 | #define SCI_SETSELFORE 2067 306 | #define SCI_SETSELBACK 2068 307 | #define SCI_GETSELALPHA 2477 308 | #define SCI_SETSELALPHA 2478 309 | #define SCI_GETSELEOLFILLED 2479 310 | #define SCI_SETSELEOLFILLED 2480 311 | #define SC_LAYER_BASE 0 312 | #define SC_LAYER_UNDER_TEXT 1 313 | #define SC_LAYER_OVER_TEXT 2 314 | #define SCI_GETSELECTIONLAYER 2762 315 | #define SCI_SETSELECTIONLAYER 2763 316 | #define SCI_GETCARETLINELAYER 2764 317 | #define SCI_SETCARETLINELAYER 2765 318 | #define SCI_GETCARETLINEHIGHLIGHTSUBLINE 2773 319 | #define SCI_SETCARETLINEHIGHLIGHTSUBLINE 2774 320 | #define SCI_SETCARETFORE 2069 321 | #define SCI_ASSIGNCMDKEY 2070 322 | #define SCI_CLEARCMDKEY 2071 323 | #define SCI_CLEARALLCMDKEYS 2072 324 | #define SCI_SETSTYLINGEX 2073 325 | #define SCI_STYLESETVISIBLE 2074 326 | #define SCI_GETCARETPERIOD 2075 327 | #define SCI_SETCARETPERIOD 2076 328 | #define SCI_SETWORDCHARS 2077 329 | #define SCI_GETWORDCHARS 2646 330 | #define SCI_SETCHARACTERCATEGORYOPTIMIZATION 2720 331 | #define SCI_GETCHARACTERCATEGORYOPTIMIZATION 2721 332 | #define SCI_BEGINUNDOACTION 2078 333 | #define SCI_ENDUNDOACTION 2079 334 | #define INDIC_PLAIN 0 335 | #define INDIC_SQUIGGLE 1 336 | #define INDIC_TT 2 337 | #define INDIC_DIAGONAL 3 338 | #define INDIC_STRIKE 4 339 | #define INDIC_HIDDEN 5 340 | #define INDIC_BOX 6 341 | #define INDIC_ROUNDBOX 7 342 | #define INDIC_STRAIGHTBOX 8 343 | #define INDIC_DASH 9 344 | #define INDIC_DOTS 10 345 | #define INDIC_SQUIGGLELOW 11 346 | #define INDIC_DOTBOX 12 347 | #define INDIC_SQUIGGLEPIXMAP 13 348 | #define INDIC_COMPOSITIONTHICK 14 349 | #define INDIC_COMPOSITIONTHIN 15 350 | #define INDIC_FULLBOX 16 351 | #define INDIC_TEXTFORE 17 352 | #define INDIC_POINT 18 353 | #define INDIC_POINTCHARACTER 19 354 | #define INDIC_GRADIENT 20 355 | #define INDIC_GRADIENTCENTRE 21 356 | #define INDIC_EXPLORERLINK 22 357 | #define INDIC_CONTAINER 8 358 | #define INDIC_IME 32 359 | #define INDIC_IME_MAX 35 360 | #define INDIC_MAX 35 361 | #define INDICATOR_CONTAINER 8 362 | #define INDICATOR_IME 32 363 | #define INDICATOR_IME_MAX 35 364 | #define INDICATOR_MAX 35 365 | #define SCI_INDICSETSTYLE 2080 366 | #define SCI_INDICGETSTYLE 2081 367 | #define SCI_INDICSETFORE 2082 368 | #define SCI_INDICGETFORE 2083 369 | #define SCI_INDICSETUNDER 2510 370 | #define SCI_INDICGETUNDER 2511 371 | #define SCI_INDICSETHOVERSTYLE 2680 372 | #define SCI_INDICGETHOVERSTYLE 2681 373 | #define SCI_INDICSETHOVERFORE 2682 374 | #define SCI_INDICGETHOVERFORE 2683 375 | #define SC_INDICVALUEBIT 0x1000000 376 | #define SC_INDICVALUEMASK 0xFFFFFF 377 | #define SC_INDICFLAG_NONE 0 378 | #define SC_INDICFLAG_VALUEFORE 1 379 | #define SCI_INDICSETFLAGS 2684 380 | #define SCI_INDICGETFLAGS 2685 381 | #define SCI_INDICSETSTROKEWIDTH 2751 382 | #define SCI_INDICGETSTROKEWIDTH 2752 383 | #define SCI_SETWHITESPACEFORE 2084 384 | #define SCI_SETWHITESPACEBACK 2085 385 | #define SCI_SETWHITESPACESIZE 2086 386 | #define SCI_GETWHITESPACESIZE 2087 387 | #define SCI_SETLINESTATE 2092 388 | #define SCI_GETLINESTATE 2093 389 | #define SCI_GETMAXLINESTATE 2094 390 | #define SCI_GETCARETLINEVISIBLE 2095 391 | #define SCI_SETCARETLINEVISIBLE 2096 392 | #define SCI_GETCARETLINEBACK 2097 393 | #define SCI_SETCARETLINEBACK 2098 394 | #define SCI_GETCARETLINEFRAME 2704 395 | #define SCI_SETCARETLINEFRAME 2705 396 | #define SCI_STYLESETCHANGEABLE 2099 397 | #define SCI_AUTOCSHOW 2100 398 | #define SCI_AUTOCCANCEL 2101 399 | #define SCI_AUTOCACTIVE 2102 400 | #define SCI_AUTOCPOSSTART 2103 401 | #define SCI_AUTOCCOMPLETE 2104 402 | #define SCI_AUTOCSTOPS 2105 403 | #define SCI_AUTOCSETSEPARATOR 2106 404 | #define SCI_AUTOCGETSEPARATOR 2107 405 | #define SCI_AUTOCSELECT 2108 406 | #define SCI_AUTOCSETCANCELATSTART 2110 407 | #define SCI_AUTOCGETCANCELATSTART 2111 408 | #define SCI_AUTOCSETFILLUPS 2112 409 | #define SCI_AUTOCSETCHOOSESINGLE 2113 410 | #define SCI_AUTOCGETCHOOSESINGLE 2114 411 | #define SCI_AUTOCSETIGNORECASE 2115 412 | #define SCI_AUTOCGETIGNORECASE 2116 413 | #define SCI_USERLISTSHOW 2117 414 | #define SCI_AUTOCSETAUTOHIDE 2118 415 | #define SCI_AUTOCGETAUTOHIDE 2119 416 | #define SC_AUTOCOMPLETE_NORMAL 0 417 | #define SC_AUTOCOMPLETE_FIXED_SIZE 1 418 | #define SCI_AUTOCSETOPTIONS 2638 419 | #define SCI_AUTOCGETOPTIONS 2639 420 | #define SCI_AUTOCSETDROPRESTOFWORD 2270 421 | #define SCI_AUTOCGETDROPRESTOFWORD 2271 422 | #define SCI_REGISTERIMAGE 2405 423 | #define SCI_CLEARREGISTEREDIMAGES 2408 424 | #define SCI_AUTOCGETTYPESEPARATOR 2285 425 | #define SCI_AUTOCSETTYPESEPARATOR 2286 426 | #define SCI_AUTOCSETMAXWIDTH 2208 427 | #define SCI_AUTOCGETMAXWIDTH 2209 428 | #define SCI_AUTOCSETMAXHEIGHT 2210 429 | #define SCI_AUTOCGETMAXHEIGHT 2211 430 | #define SCI_SETINDENT 2122 431 | #define SCI_GETINDENT 2123 432 | #define SCI_SETUSETABS 2124 433 | #define SCI_GETUSETABS 2125 434 | #define SCI_SETLINEINDENTATION 2126 435 | #define SCI_GETLINEINDENTATION 2127 436 | #define SCI_GETLINEINDENTPOSITION 2128 437 | #define SCI_GETCOLUMN 2129 438 | #define SCI_COUNTCHARACTERS 2633 439 | #define SCI_COUNTCODEUNITS 2715 440 | #define SCI_SETHSCROLLBAR 2130 441 | #define SCI_GETHSCROLLBAR 2131 442 | #define SC_IV_NONE 0 443 | #define SC_IV_REAL 1 444 | #define SC_IV_LOOKFORWARD 2 445 | #define SC_IV_LOOKBOTH 3 446 | #define SCI_SETINDENTATIONGUIDES 2132 447 | #define SCI_GETINDENTATIONGUIDES 2133 448 | #define SCI_SETHIGHLIGHTGUIDE 2134 449 | #define SCI_GETHIGHLIGHTGUIDE 2135 450 | #define SCI_GETLINEENDPOSITION 2136 451 | #define SCI_GETCODEPAGE 2137 452 | #define SCI_GETCARETFORE 2138 453 | #define SCI_GETREADONLY 2140 454 | #define SCI_SETCURRENTPOS 2141 455 | #define SCI_SETSELECTIONSTART 2142 456 | #define SCI_GETSELECTIONSTART 2143 457 | #define SCI_SETSELECTIONEND 2144 458 | #define SCI_GETSELECTIONEND 2145 459 | #define SCI_SETEMPTYSELECTION 2556 460 | #define SCI_SETPRINTMAGNIFICATION 2146 461 | #define SCI_GETPRINTMAGNIFICATION 2147 462 | #define SC_PRINT_NORMAL 0 463 | #define SC_PRINT_INVERTLIGHT 1 464 | #define SC_PRINT_BLACKONWHITE 2 465 | #define SC_PRINT_COLOURONWHITE 3 466 | #define SC_PRINT_COLOURONWHITEDEFAULTBG 4 467 | #define SC_PRINT_SCREENCOLOURS 5 468 | #define SCI_SETPRINTCOLOURMODE 2148 469 | #define SCI_GETPRINTCOLOURMODE 2149 470 | #define SCFIND_NONE 0x0 471 | #define SCFIND_WHOLEWORD 0x2 472 | #define SCFIND_MATCHCASE 0x4 473 | #define SCFIND_WORDSTART 0x00100000 474 | #define SCFIND_REGEXP 0x00200000 475 | #define SCFIND_POSIX 0x00400000 476 | #define SCFIND_CXX11REGEX 0x00800000 477 | #define SCI_FINDTEXT 2150 478 | #define SCI_FINDTEXTFULL 2196 479 | #define SCI_FORMATRANGE 2151 480 | #define SCI_FORMATRANGEFULL 2777 481 | #define SCI_GETFIRSTVISIBLELINE 2152 482 | #define SCI_GETLINE 2153 483 | #define SCI_GETLINECOUNT 2154 484 | #define SCI_ALLOCATELINES 2089 485 | #define SCI_SETMARGINLEFT 2155 486 | #define SCI_GETMARGINLEFT 2156 487 | #define SCI_SETMARGINRIGHT 2157 488 | #define SCI_GETMARGINRIGHT 2158 489 | #define SCI_GETMODIFY 2159 490 | #define SCI_SETSEL 2160 491 | #define SCI_GETSELTEXT 2161 492 | #define SCI_GETTEXTRANGE 2162 493 | #define SCI_GETTEXTRANGEFULL 2039 494 | #define SCI_HIDESELECTION 2163 495 | #define SCI_POINTXFROMPOSITION 2164 496 | #define SCI_POINTYFROMPOSITION 2165 497 | #define SCI_LINEFROMPOSITION 2166 498 | #define SCI_POSITIONFROMLINE 2167 499 | #define SCI_LINESCROLL 2168 500 | #define SCI_SCROLLCARET 2169 501 | #define SCI_SCROLLRANGE 2569 502 | #define SCI_REPLACESEL 2170 503 | #define SCI_SETREADONLY 2171 504 | #define SCI_NULL 2172 505 | #define SCI_CANPASTE 2173 506 | #define SCI_CANUNDO 2174 507 | #define SCI_EMPTYUNDOBUFFER 2175 508 | #define SCI_UNDO 2176 509 | #define SCI_CUT 2177 510 | #define SCI_COPY 2178 511 | #define SCI_PASTE 2179 512 | #define SCI_CLEAR 2180 513 | #define SCI_SETTEXT 2181 514 | #define SCI_GETTEXT 2182 515 | #define SCI_GETTEXTLENGTH 2183 516 | #define SCI_GETDIRECTFUNCTION 2184 517 | #define SCI_GETDIRECTSTATUSFUNCTION 2772 518 | #define SCI_GETDIRECTPOINTER 2185 519 | #define SCI_SETOVERTYPE 2186 520 | #define SCI_GETOVERTYPE 2187 521 | #define SCI_SETCARETWIDTH 2188 522 | #define SCI_GETCARETWIDTH 2189 523 | #define SCI_SETTARGETSTART 2190 524 | #define SCI_GETTARGETSTART 2191 525 | #define SCI_SETTARGETSTARTVIRTUALSPACE 2728 526 | #define SCI_GETTARGETSTARTVIRTUALSPACE 2729 527 | #define SCI_SETTARGETEND 2192 528 | #define SCI_GETTARGETEND 2193 529 | #define SCI_SETTARGETENDVIRTUALSPACE 2730 530 | #define SCI_GETTARGETENDVIRTUALSPACE 2731 531 | #define SCI_SETTARGETRANGE 2686 532 | #define SCI_GETTARGETTEXT 2687 533 | #define SCI_TARGETFROMSELECTION 2287 534 | #define SCI_TARGETWHOLEDOCUMENT 2690 535 | #define SCI_REPLACETARGET 2194 536 | #define SCI_REPLACETARGETRE 2195 537 | #define SCI_SEARCHINTARGET 2197 538 | #define SCI_SETSEARCHFLAGS 2198 539 | #define SCI_GETSEARCHFLAGS 2199 540 | #define SCI_CALLTIPSHOW 2200 541 | #define SCI_CALLTIPCANCEL 2201 542 | #define SCI_CALLTIPACTIVE 2202 543 | #define SCI_CALLTIPPOSSTART 2203 544 | #define SCI_CALLTIPSETPOSSTART 2214 545 | #define SCI_CALLTIPSETHLT 2204 546 | #define SCI_CALLTIPSETBACK 2205 547 | #define SCI_CALLTIPSETFORE 2206 548 | #define SCI_CALLTIPSETFOREHLT 2207 549 | #define SCI_CALLTIPUSESTYLE 2212 550 | #define SCI_CALLTIPSETPOSITION 2213 551 | #define SCI_VISIBLEFROMDOCLINE 2220 552 | #define SCI_DOCLINEFROMVISIBLE 2221 553 | #define SCI_WRAPCOUNT 2235 554 | #define SC_FOLDLEVELNONE 0x0 555 | #define SC_FOLDLEVELBASE 0x400 556 | #define SC_FOLDLEVELWHITEFLAG 0x1000 557 | #define SC_FOLDLEVELHEADERFLAG 0x2000 558 | #define SC_FOLDLEVELNUMBERMASK 0x0FFF 559 | #define SCI_SETFOLDLEVEL 2222 560 | #define SCI_GETFOLDLEVEL 2223 561 | #define SCI_GETLASTCHILD 2224 562 | #define SCI_GETFOLDPARENT 2225 563 | #define SCI_SHOWLINES 2226 564 | #define SCI_HIDELINES 2227 565 | #define SCI_GETLINEVISIBLE 2228 566 | #define SCI_GETALLLINESVISIBLE 2236 567 | #define SCI_SETFOLDEXPANDED 2229 568 | #define SCI_GETFOLDEXPANDED 2230 569 | #define SCI_TOGGLEFOLD 2231 570 | #define SCI_TOGGLEFOLDSHOWTEXT 2700 571 | #define SC_FOLDDISPLAYTEXT_HIDDEN 0 572 | #define SC_FOLDDISPLAYTEXT_STANDARD 1 573 | #define SC_FOLDDISPLAYTEXT_BOXED 2 574 | #define SCI_FOLDDISPLAYTEXTSETSTYLE 2701 575 | #define SCI_FOLDDISPLAYTEXTGETSTYLE 2707 576 | #define SCI_SETDEFAULTFOLDDISPLAYTEXT 2722 577 | #define SCI_GETDEFAULTFOLDDISPLAYTEXT 2723 578 | #define SC_FOLDACTION_CONTRACT 0 579 | #define SC_FOLDACTION_EXPAND 1 580 | #define SC_FOLDACTION_TOGGLE 2 581 | #define SCI_FOLDLINE 2237 582 | #define SCI_FOLDCHILDREN 2238 583 | #define SCI_EXPANDCHILDREN 2239 584 | #define SCI_FOLDALL 2662 585 | #define SCI_ENSUREVISIBLE 2232 586 | #define SC_AUTOMATICFOLD_NONE 0x0000 587 | #define SC_AUTOMATICFOLD_SHOW 0x0001 588 | #define SC_AUTOMATICFOLD_CLICK 0x0002 589 | #define SC_AUTOMATICFOLD_CHANGE 0x0004 590 | #define SCI_SETAUTOMATICFOLD 2663 591 | #define SCI_GETAUTOMATICFOLD 2664 592 | #define SC_FOLDFLAG_NONE 0x0000 593 | #define SC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002 594 | #define SC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004 595 | #define SC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008 596 | #define SC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010 597 | #define SC_FOLDFLAG_LEVELNUMBERS 0x0040 598 | #define SC_FOLDFLAG_LINESTATE 0x0080 599 | #define SCI_SETFOLDFLAGS 2233 600 | #define SCI_ENSUREVISIBLEENFORCEPOLICY 2234 601 | #define SCI_SETTABINDENTS 2260 602 | #define SCI_GETTABINDENTS 2261 603 | #define SCI_SETBACKSPACEUNINDENTS 2262 604 | #define SCI_GETBACKSPACEUNINDENTS 2263 605 | #define SC_TIME_FOREVER 10000000 606 | #define SCI_SETMOUSEDWELLTIME 2264 607 | #define SCI_GETMOUSEDWELLTIME 2265 608 | #define SCI_WORDSTARTPOSITION 2266 609 | #define SCI_WORDENDPOSITION 2267 610 | #define SCI_ISRANGEWORD 2691 611 | #define SC_IDLESTYLING_NONE 0 612 | #define SC_IDLESTYLING_TOVISIBLE 1 613 | #define SC_IDLESTYLING_AFTERVISIBLE 2 614 | #define SC_IDLESTYLING_ALL 3 615 | #define SCI_SETIDLESTYLING 2692 616 | #define SCI_GETIDLESTYLING 2693 617 | #define SC_WRAP_NONE 0 618 | #define SC_WRAP_WORD 1 619 | #define SC_WRAP_CHAR 2 620 | #define SC_WRAP_WHITESPACE 3 621 | #define SCI_SETWRAPMODE 2268 622 | #define SCI_GETWRAPMODE 2269 623 | #define SC_WRAPVISUALFLAG_NONE 0x0000 624 | #define SC_WRAPVISUALFLAG_END 0x0001 625 | #define SC_WRAPVISUALFLAG_START 0x0002 626 | #define SC_WRAPVISUALFLAG_MARGIN 0x0004 627 | #define SCI_SETWRAPVISUALFLAGS 2460 628 | #define SCI_GETWRAPVISUALFLAGS 2461 629 | #define SC_WRAPVISUALFLAGLOC_DEFAULT 0x0000 630 | #define SC_WRAPVISUALFLAGLOC_END_BY_TEXT 0x0001 631 | #define SC_WRAPVISUALFLAGLOC_START_BY_TEXT 0x0002 632 | #define SCI_SETWRAPVISUALFLAGSLOCATION 2462 633 | #define SCI_GETWRAPVISUALFLAGSLOCATION 2463 634 | #define SCI_SETWRAPSTARTINDENT 2464 635 | #define SCI_GETWRAPSTARTINDENT 2465 636 | #define SC_WRAPINDENT_FIXED 0 637 | #define SC_WRAPINDENT_SAME 1 638 | #define SC_WRAPINDENT_INDENT 2 639 | #define SC_WRAPINDENT_DEEPINDENT 3 640 | #define SCI_SETWRAPINDENTMODE 2472 641 | #define SCI_GETWRAPINDENTMODE 2473 642 | #define SC_CACHE_NONE 0 643 | #define SC_CACHE_CARET 1 644 | #define SC_CACHE_PAGE 2 645 | #define SC_CACHE_DOCUMENT 3 646 | #define SCI_SETLAYOUTCACHE 2272 647 | #define SCI_GETLAYOUTCACHE 2273 648 | #define SCI_SETSCROLLWIDTH 2274 649 | #define SCI_GETSCROLLWIDTH 2275 650 | #define SCI_SETSCROLLWIDTHTRACKING 2516 651 | #define SCI_GETSCROLLWIDTHTRACKING 2517 652 | #define SCI_TEXTWIDTH 2276 653 | #define SCI_SETENDATLASTLINE 2277 654 | #define SCI_GETENDATLASTLINE 2278 655 | #define SCI_TEXTHEIGHT 2279 656 | #define SCI_SETVSCROLLBAR 2280 657 | #define SCI_GETVSCROLLBAR 2281 658 | #define SCI_APPENDTEXT 2282 659 | #define SC_PHASES_ONE 0 660 | #define SC_PHASES_TWO 1 661 | #define SC_PHASES_MULTIPLE 2 662 | #define SCI_GETPHASESDRAW 2673 663 | #define SCI_SETPHASESDRAW 2674 664 | #define SC_EFF_QUALITY_MASK 0xF 665 | #define SC_EFF_QUALITY_DEFAULT 0 666 | #define SC_EFF_QUALITY_NON_ANTIALIASED 1 667 | #define SC_EFF_QUALITY_ANTIALIASED 2 668 | #define SC_EFF_QUALITY_LCD_OPTIMIZED 3 669 | #define SCI_SETFONTQUALITY 2611 670 | #define SCI_GETFONTQUALITY 2612 671 | #define SCI_SETFIRSTVISIBLELINE 2613 672 | #define SC_MULTIPASTE_ONCE 0 673 | #define SC_MULTIPASTE_EACH 1 674 | #define SCI_SETMULTIPASTE 2614 675 | #define SCI_GETMULTIPASTE 2615 676 | #define SCI_GETTAG 2616 677 | #define SCI_LINESJOIN 2288 678 | #define SCI_LINESSPLIT 2289 679 | #define SCI_SETFOLDMARGINCOLOUR 2290 680 | #define SCI_SETFOLDMARGINHICOLOUR 2291 681 | #define SC_ACCESSIBILITY_DISABLED 0 682 | #define SC_ACCESSIBILITY_ENABLED 1 683 | #define SCI_SETACCESSIBILITY 2702 684 | #define SCI_GETACCESSIBILITY 2703 685 | #define SCI_LINEDOWN 2300 686 | #define SCI_LINEDOWNEXTEND 2301 687 | #define SCI_LINEUP 2302 688 | #define SCI_LINEUPEXTEND 2303 689 | #define SCI_CHARLEFT 2304 690 | #define SCI_CHARLEFTEXTEND 2305 691 | #define SCI_CHARRIGHT 2306 692 | #define SCI_CHARRIGHTEXTEND 2307 693 | #define SCI_WORDLEFT 2308 694 | #define SCI_WORDLEFTEXTEND 2309 695 | #define SCI_WORDRIGHT 2310 696 | #define SCI_WORDRIGHTEXTEND 2311 697 | #define SCI_HOME 2312 698 | #define SCI_HOMEEXTEND 2313 699 | #define SCI_LINEEND 2314 700 | #define SCI_LINEENDEXTEND 2315 701 | #define SCI_DOCUMENTSTART 2316 702 | #define SCI_DOCUMENTSTARTEXTEND 2317 703 | #define SCI_DOCUMENTEND 2318 704 | #define SCI_DOCUMENTENDEXTEND 2319 705 | #define SCI_PAGEUP 2320 706 | #define SCI_PAGEUPEXTEND 2321 707 | #define SCI_PAGEDOWN 2322 708 | #define SCI_PAGEDOWNEXTEND 2323 709 | #define SCI_EDITTOGGLEOVERTYPE 2324 710 | #define SCI_CANCEL 2325 711 | #define SCI_DELETEBACK 2326 712 | #define SCI_TAB 2327 713 | #define SCI_BACKTAB 2328 714 | #define SCI_NEWLINE 2329 715 | #define SCI_FORMFEED 2330 716 | #define SCI_VCHOME 2331 717 | #define SCI_VCHOMEEXTEND 2332 718 | #define SCI_ZOOMIN 2333 719 | #define SCI_ZOOMOUT 2334 720 | #define SCI_DELWORDLEFT 2335 721 | #define SCI_DELWORDRIGHT 2336 722 | #define SCI_DELWORDRIGHTEND 2518 723 | #define SCI_LINECUT 2337 724 | #define SCI_LINEDELETE 2338 725 | #define SCI_LINETRANSPOSE 2339 726 | #define SCI_LINEREVERSE 2354 727 | #define SCI_LINEDUPLICATE 2404 728 | #define SCI_LOWERCASE 2340 729 | #define SCI_UPPERCASE 2341 730 | #define SCI_LINESCROLLDOWN 2342 731 | #define SCI_LINESCROLLUP 2343 732 | #define SCI_DELETEBACKNOTLINE 2344 733 | #define SCI_HOMEDISPLAY 2345 734 | #define SCI_HOMEDISPLAYEXTEND 2346 735 | #define SCI_LINEENDDISPLAY 2347 736 | #define SCI_LINEENDDISPLAYEXTEND 2348 737 | #define SCI_HOMEWRAP 2349 738 | #define SCI_HOMEWRAPEXTEND 2450 739 | #define SCI_LINEENDWRAP 2451 740 | #define SCI_LINEENDWRAPEXTEND 2452 741 | #define SCI_VCHOMEWRAP 2453 742 | #define SCI_VCHOMEWRAPEXTEND 2454 743 | #define SCI_LINECOPY 2455 744 | #define SCI_MOVECARETINSIDEVIEW 2401 745 | #define SCI_LINELENGTH 2350 746 | #define SCI_BRACEHIGHLIGHT 2351 747 | #define SCI_BRACEHIGHLIGHTINDICATOR 2498 748 | #define SCI_BRACEBADLIGHT 2352 749 | #define SCI_BRACEBADLIGHTINDICATOR 2499 750 | #define SCI_BRACEMATCH 2353 751 | #define SCI_BRACEMATCHNEXT 2369 752 | #define SCI_GETVIEWEOL 2355 753 | #define SCI_SETVIEWEOL 2356 754 | #define SCI_GETDOCPOINTER 2357 755 | #define SCI_SETDOCPOINTER 2358 756 | #define SCI_SETMODEVENTMASK 2359 757 | #define EDGE_NONE 0 758 | #define EDGE_LINE 1 759 | #define EDGE_BACKGROUND 2 760 | #define EDGE_MULTILINE 3 761 | #define SCI_GETEDGECOLUMN 2360 762 | #define SCI_SETEDGECOLUMN 2361 763 | #define SCI_GETEDGEMODE 2362 764 | #define SCI_SETEDGEMODE 2363 765 | #define SCI_GETEDGECOLOUR 2364 766 | #define SCI_SETEDGECOLOUR 2365 767 | #define SCI_MULTIEDGEADDLINE 2694 768 | #define SCI_MULTIEDGECLEARALL 2695 769 | #define SCI_GETMULTIEDGECOLUMN 2749 770 | #define SCI_SEARCHANCHOR 2366 771 | #define SCI_SEARCHNEXT 2367 772 | #define SCI_SEARCHPREV 2368 773 | #define SCI_LINESONSCREEN 2370 774 | #define SC_POPUP_NEVER 0 775 | #define SC_POPUP_ALL 1 776 | #define SC_POPUP_TEXT 2 777 | #define SCI_USEPOPUP 2371 778 | #define SCI_SELECTIONISRECTANGLE 2372 779 | #define SCI_SETZOOM 2373 780 | #define SCI_GETZOOM 2374 781 | #define SC_DOCUMENTOPTION_DEFAULT 0 782 | #define SC_DOCUMENTOPTION_STYLES_NONE 0x1 783 | #define SC_DOCUMENTOPTION_TEXT_LARGE 0x100 784 | #define SCI_CREATEDOCUMENT 2375 785 | #define SCI_ADDREFDOCUMENT 2376 786 | #define SCI_RELEASEDOCUMENT 2377 787 | #define SCI_GETDOCUMENTOPTIONS 2379 788 | #define SCI_GETMODEVENTMASK 2378 789 | #define SCI_SETCOMMANDEVENTS 2717 790 | #define SCI_GETCOMMANDEVENTS 2718 791 | #define SCI_SETFOCUS 2380 792 | #define SCI_GETFOCUS 2381 793 | #define SC_STATUS_OK 0 794 | #define SC_STATUS_FAILURE 1 795 | #define SC_STATUS_BADALLOC 2 796 | #define SC_STATUS_WARN_START 1000 797 | #define SC_STATUS_WARN_REGEX 1001 798 | #define SCI_SETSTATUS 2382 799 | #define SCI_GETSTATUS 2383 800 | #define SCI_SETMOUSEDOWNCAPTURES 2384 801 | #define SCI_GETMOUSEDOWNCAPTURES 2385 802 | #define SCI_SETMOUSEWHEELCAPTURES 2696 803 | #define SCI_GETMOUSEWHEELCAPTURES 2697 804 | #define SCI_SETCURSOR 2386 805 | #define SCI_GETCURSOR 2387 806 | #define SCI_SETCONTROLCHARSYMBOL 2388 807 | #define SCI_GETCONTROLCHARSYMBOL 2389 808 | #define SCI_WORDPARTLEFT 2390 809 | #define SCI_WORDPARTLEFTEXTEND 2391 810 | #define SCI_WORDPARTRIGHT 2392 811 | #define SCI_WORDPARTRIGHTEXTEND 2393 812 | #define VISIBLE_SLOP 0x01 813 | #define VISIBLE_STRICT 0x04 814 | #define SCI_SETVISIBLEPOLICY 2394 815 | #define SCI_DELLINELEFT 2395 816 | #define SCI_DELLINERIGHT 2396 817 | #define SCI_SETXOFFSET 2397 818 | #define SCI_GETXOFFSET 2398 819 | #define SCI_CHOOSECARETX 2399 820 | #define SCI_GRABFOCUS 2400 821 | #define CARET_SLOP 0x01 822 | #define CARET_STRICT 0x04 823 | #define CARET_JUMPS 0x10 824 | #define CARET_EVEN 0x08 825 | #define SCI_SETXCARETPOLICY 2402 826 | #define SCI_SETYCARETPOLICY 2403 827 | #define SCI_SETPRINTWRAPMODE 2406 828 | #define SCI_GETPRINTWRAPMODE 2407 829 | #define SCI_SETHOTSPOTACTIVEFORE 2410 830 | #define SCI_GETHOTSPOTACTIVEFORE 2494 831 | #define SCI_SETHOTSPOTACTIVEBACK 2411 832 | #define SCI_GETHOTSPOTACTIVEBACK 2495 833 | #define SCI_SETHOTSPOTACTIVEUNDERLINE 2412 834 | #define SCI_GETHOTSPOTACTIVEUNDERLINE 2496 835 | #define SCI_SETHOTSPOTSINGLELINE 2421 836 | #define SCI_GETHOTSPOTSINGLELINE 2497 837 | #define SCI_PARADOWN 2413 838 | #define SCI_PARADOWNEXTEND 2414 839 | #define SCI_PARAUP 2415 840 | #define SCI_PARAUPEXTEND 2416 841 | #define SCI_POSITIONBEFORE 2417 842 | #define SCI_POSITIONAFTER 2418 843 | #define SCI_POSITIONRELATIVE 2670 844 | #define SCI_POSITIONRELATIVECODEUNITS 2716 845 | #define SCI_COPYRANGE 2419 846 | #define SCI_COPYTEXT 2420 847 | #define SC_SEL_STREAM 0 848 | #define SC_SEL_RECTANGLE 1 849 | #define SC_SEL_LINES 2 850 | #define SC_SEL_THIN 3 851 | #define SCI_SETSELECTIONMODE 2422 852 | #define SCI_GETSELECTIONMODE 2423 853 | #define SCI_GETMOVEEXTENDSSELECTION 2706 854 | #define SCI_GETLINESELSTARTPOSITION 2424 855 | #define SCI_GETLINESELENDPOSITION 2425 856 | #define SCI_LINEDOWNRECTEXTEND 2426 857 | #define SCI_LINEUPRECTEXTEND 2427 858 | #define SCI_CHARLEFTRECTEXTEND 2428 859 | #define SCI_CHARRIGHTRECTEXTEND 2429 860 | #define SCI_HOMERECTEXTEND 2430 861 | #define SCI_VCHOMERECTEXTEND 2431 862 | #define SCI_LINEENDRECTEXTEND 2432 863 | #define SCI_PAGEUPRECTEXTEND 2433 864 | #define SCI_PAGEDOWNRECTEXTEND 2434 865 | #define SCI_STUTTEREDPAGEUP 2435 866 | #define SCI_STUTTEREDPAGEUPEXTEND 2436 867 | #define SCI_STUTTEREDPAGEDOWN 2437 868 | #define SCI_STUTTEREDPAGEDOWNEXTEND 2438 869 | #define SCI_WORDLEFTEND 2439 870 | #define SCI_WORDLEFTENDEXTEND 2440 871 | #define SCI_WORDRIGHTEND 2441 872 | #define SCI_WORDRIGHTENDEXTEND 2442 873 | #define SCI_SETWHITESPACECHARS 2443 874 | #define SCI_GETWHITESPACECHARS 2647 875 | #define SCI_SETPUNCTUATIONCHARS 2648 876 | #define SCI_GETPUNCTUATIONCHARS 2649 877 | #define SCI_SETCHARSDEFAULT 2444 878 | #define SCI_AUTOCGETCURRENT 2445 879 | #define SCI_AUTOCGETCURRENTTEXT 2610 880 | #define SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE 0 881 | #define SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE 1 882 | #define SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR 2634 883 | #define SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR 2635 884 | #define SC_MULTIAUTOC_ONCE 0 885 | #define SC_MULTIAUTOC_EACH 1 886 | #define SCI_AUTOCSETMULTI 2636 887 | #define SCI_AUTOCGETMULTI 2637 888 | #define SC_ORDER_PRESORTED 0 889 | #define SC_ORDER_PERFORMSORT 1 890 | #define SC_ORDER_CUSTOM 2 891 | #define SCI_AUTOCSETORDER 2660 892 | #define SCI_AUTOCGETORDER 2661 893 | #define SCI_ALLOCATE 2446 894 | #define SCI_TARGETASUTF8 2447 895 | #define SCI_SETLENGTHFORENCODE 2448 896 | #define SCI_ENCODEDFROMUTF8 2449 897 | #define SCI_FINDCOLUMN 2456 898 | #define SC_CARETSTICKY_OFF 0 899 | #define SC_CARETSTICKY_ON 1 900 | #define SC_CARETSTICKY_WHITESPACE 2 901 | #define SCI_GETCARETSTICKY 2457 902 | #define SCI_SETCARETSTICKY 2458 903 | #define SCI_TOGGLECARETSTICKY 2459 904 | #define SCI_SETPASTECONVERTENDINGS 2467 905 | #define SCI_GETPASTECONVERTENDINGS 2468 906 | #define SCI_REPLACERECTANGULAR 2771 907 | #define SCI_SELECTIONDUPLICATE 2469 908 | #define SCI_SETCARETLINEBACKALPHA 2470 909 | #define SCI_GETCARETLINEBACKALPHA 2471 910 | #define CARETSTYLE_INVISIBLE 0 911 | #define CARETSTYLE_LINE 1 912 | #define CARETSTYLE_BLOCK 2 913 | #define CARETSTYLE_OVERSTRIKE_BAR 0 914 | #define CARETSTYLE_OVERSTRIKE_BLOCK 0x10 915 | #define CARETSTYLE_CURSES 0x20 916 | #define CARETSTYLE_INS_MASK 0xF 917 | #define CARETSTYLE_BLOCK_AFTER 0x100 918 | #define SCI_SETCARETSTYLE 2512 919 | #define SCI_GETCARETSTYLE 2513 920 | #define SCI_SETINDICATORCURRENT 2500 921 | #define SCI_GETINDICATORCURRENT 2501 922 | #define SCI_SETINDICATORVALUE 2502 923 | #define SCI_GETINDICATORVALUE 2503 924 | #define SCI_INDICATORFILLRANGE 2504 925 | #define SCI_INDICATORCLEARRANGE 2505 926 | #define SCI_INDICATORALLONFOR 2506 927 | #define SCI_INDICATORVALUEAT 2507 928 | #define SCI_INDICATORSTART 2508 929 | #define SCI_INDICATOREND 2509 930 | #define SCI_SETPOSITIONCACHE 2514 931 | #define SCI_GETPOSITIONCACHE 2515 932 | #define SCI_SETLAYOUTTHREADS 2775 933 | #define SCI_GETLAYOUTTHREADS 2776 934 | #define SCI_COPYALLOWLINE 2519 935 | #define SCI_GETCHARACTERPOINTER 2520 936 | #define SCI_GETRANGEPOINTER 2643 937 | #define SCI_GETGAPPOSITION 2644 938 | #define SCI_INDICSETALPHA 2523 939 | #define SCI_INDICGETALPHA 2524 940 | #define SCI_INDICSETOUTLINEALPHA 2558 941 | #define SCI_INDICGETOUTLINEALPHA 2559 942 | #define SCI_SETEXTRAASCENT 2525 943 | #define SCI_GETEXTRAASCENT 2526 944 | #define SCI_SETEXTRADESCENT 2527 945 | #define SCI_GETEXTRADESCENT 2528 946 | #define SCI_MARKERSYMBOLDEFINED 2529 947 | #define SCI_MARGINSETTEXT 2530 948 | #define SCI_MARGINGETTEXT 2531 949 | #define SCI_MARGINSETSTYLE 2532 950 | #define SCI_MARGINGETSTYLE 2533 951 | #define SCI_MARGINSETSTYLES 2534 952 | #define SCI_MARGINGETSTYLES 2535 953 | #define SCI_MARGINTEXTCLEARALL 2536 954 | #define SCI_MARGINSETSTYLEOFFSET 2537 955 | #define SCI_MARGINGETSTYLEOFFSET 2538 956 | #define SC_MARGINOPTION_NONE 0 957 | #define SC_MARGINOPTION_SUBLINESELECT 1 958 | #define SCI_SETMARGINOPTIONS 2539 959 | #define SCI_GETMARGINOPTIONS 2557 960 | #define SCI_ANNOTATIONSETTEXT 2540 961 | #define SCI_ANNOTATIONGETTEXT 2541 962 | #define SCI_ANNOTATIONSETSTYLE 2542 963 | #define SCI_ANNOTATIONGETSTYLE 2543 964 | #define SCI_ANNOTATIONSETSTYLES 2544 965 | #define SCI_ANNOTATIONGETSTYLES 2545 966 | #define SCI_ANNOTATIONGETLINES 2546 967 | #define SCI_ANNOTATIONCLEARALL 2547 968 | #define ANNOTATION_HIDDEN 0 969 | #define ANNOTATION_STANDARD 1 970 | #define ANNOTATION_BOXED 2 971 | #define ANNOTATION_INDENTED 3 972 | #define SCI_ANNOTATIONSETVISIBLE 2548 973 | #define SCI_ANNOTATIONGETVISIBLE 2549 974 | #define SCI_ANNOTATIONSETSTYLEOFFSET 2550 975 | #define SCI_ANNOTATIONGETSTYLEOFFSET 2551 976 | #define SCI_RELEASEALLEXTENDEDSTYLES 2552 977 | #define SCI_ALLOCATEEXTENDEDSTYLES 2553 978 | #define UNDO_NONE 0 979 | #define UNDO_MAY_COALESCE 1 980 | #define SCI_ADDUNDOACTION 2560 981 | #define SCI_CHARPOSITIONFROMPOINT 2561 982 | #define SCI_CHARPOSITIONFROMPOINTCLOSE 2562 983 | #define SCI_SETMOUSESELECTIONRECTANGULARSWITCH 2668 984 | #define SCI_GETMOUSESELECTIONRECTANGULARSWITCH 2669 985 | #define SCI_SETMULTIPLESELECTION 2563 986 | #define SCI_GETMULTIPLESELECTION 2564 987 | #define SCI_SETADDITIONALSELECTIONTYPING 2565 988 | #define SCI_GETADDITIONALSELECTIONTYPING 2566 989 | #define SCI_SETADDITIONALCARETSBLINK 2567 990 | #define SCI_GETADDITIONALCARETSBLINK 2568 991 | #define SCI_SETADDITIONALCARETSVISIBLE 2608 992 | #define SCI_GETADDITIONALCARETSVISIBLE 2609 993 | #define SCI_GETSELECTIONS 2570 994 | #define SCI_GETSELECTIONEMPTY 2650 995 | #define SCI_CLEARSELECTIONS 2571 996 | #define SCI_SETSELECTION 2572 997 | #define SCI_ADDSELECTION 2573 998 | #define SCI_DROPSELECTIONN 2671 999 | #define SCI_SETMAINSELECTION 2574 1000 | #define SCI_GETMAINSELECTION 2575 1001 | #define SCI_SETSELECTIONNCARET 2576 1002 | #define SCI_GETSELECTIONNCARET 2577 1003 | #define SCI_SETSELECTIONNANCHOR 2578 1004 | #define SCI_GETSELECTIONNANCHOR 2579 1005 | #define SCI_SETSELECTIONNCARETVIRTUALSPACE 2580 1006 | #define SCI_GETSELECTIONNCARETVIRTUALSPACE 2581 1007 | #define SCI_SETSELECTIONNANCHORVIRTUALSPACE 2582 1008 | #define SCI_GETSELECTIONNANCHORVIRTUALSPACE 2583 1009 | #define SCI_SETSELECTIONNSTART 2584 1010 | #define SCI_GETSELECTIONNSTART 2585 1011 | #define SCI_GETSELECTIONNSTARTVIRTUALSPACE 2726 1012 | #define SCI_SETSELECTIONNEND 2586 1013 | #define SCI_GETSELECTIONNENDVIRTUALSPACE 2727 1014 | #define SCI_GETSELECTIONNEND 2587 1015 | #define SCI_SETRECTANGULARSELECTIONCARET 2588 1016 | #define SCI_GETRECTANGULARSELECTIONCARET 2589 1017 | #define SCI_SETRECTANGULARSELECTIONANCHOR 2590 1018 | #define SCI_GETRECTANGULARSELECTIONANCHOR 2591 1019 | #define SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE 2592 1020 | #define SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE 2593 1021 | #define SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE 2594 1022 | #define SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE 2595 1023 | #define SCVS_NONE 0 1024 | #define SCVS_RECTANGULARSELECTION 1 1025 | #define SCVS_USERACCESSIBLE 2 1026 | #define SCVS_NOWRAPLINESTART 4 1027 | #define SCI_SETVIRTUALSPACEOPTIONS 2596 1028 | #define SCI_GETVIRTUALSPACEOPTIONS 2597 1029 | #define SCI_SETRECTANGULARSELECTIONMODIFIER 2598 1030 | #define SCI_GETRECTANGULARSELECTIONMODIFIER 2599 1031 | #define SCI_SETADDITIONALSELFORE 2600 1032 | #define SCI_SETADDITIONALSELBACK 2601 1033 | #define SCI_SETADDITIONALSELALPHA 2602 1034 | #define SCI_GETADDITIONALSELALPHA 2603 1035 | #define SCI_SETADDITIONALCARETFORE 2604 1036 | #define SCI_GETADDITIONALCARETFORE 2605 1037 | #define SCI_ROTATESELECTION 2606 1038 | #define SCI_SWAPMAINANCHORCARET 2607 1039 | #define SCI_MULTIPLESELECTADDNEXT 2688 1040 | #define SCI_MULTIPLESELECTADDEACH 2689 1041 | #define SCI_CHANGELEXERSTATE 2617 1042 | #define SCI_CONTRACTEDFOLDNEXT 2618 1043 | #define SCI_VERTICALCENTRECARET 2619 1044 | #define SCI_MOVESELECTEDLINESUP 2620 1045 | #define SCI_MOVESELECTEDLINESDOWN 2621 1046 | #define SCI_SETIDENTIFIER 2622 1047 | #define SCI_GETIDENTIFIER 2623 1048 | #define SCI_RGBAIMAGESETWIDTH 2624 1049 | #define SCI_RGBAIMAGESETHEIGHT 2625 1050 | #define SCI_RGBAIMAGESETSCALE 2651 1051 | #define SCI_MARKERDEFINERGBAIMAGE 2626 1052 | #define SCI_REGISTERRGBAIMAGE 2627 1053 | #define SCI_SCROLLTOSTART 2628 1054 | #define SCI_SCROLLTOEND 2629 1055 | #define SC_TECHNOLOGY_DEFAULT 0 1056 | #define SC_TECHNOLOGY_DIRECTWRITE 1 1057 | #define SC_TECHNOLOGY_DIRECTWRITERETAIN 2 1058 | #define SC_TECHNOLOGY_DIRECTWRITEDC 3 1059 | #define SCI_SETTECHNOLOGY 2630 1060 | #define SCI_GETTECHNOLOGY 2631 1061 | #define SCI_CREATELOADER 2632 1062 | #define SCI_FINDINDICATORSHOW 2640 1063 | #define SCI_FINDINDICATORFLASH 2641 1064 | #define SCI_FINDINDICATORHIDE 2642 1065 | #define SCI_VCHOMEDISPLAY 2652 1066 | #define SCI_VCHOMEDISPLAYEXTEND 2653 1067 | #define SCI_GETCARETLINEVISIBLEALWAYS 2654 1068 | #define SCI_SETCARETLINEVISIBLEALWAYS 2655 1069 | #define SC_LINE_END_TYPE_DEFAULT 0 1070 | #define SC_LINE_END_TYPE_UNICODE 1 1071 | #define SCI_SETLINEENDTYPESALLOWED 2656 1072 | #define SCI_GETLINEENDTYPESALLOWED 2657 1073 | #define SCI_GETLINEENDTYPESACTIVE 2658 1074 | #define SCI_SETREPRESENTATION 2665 1075 | #define SCI_GETREPRESENTATION 2666 1076 | #define SCI_CLEARREPRESENTATION 2667 1077 | #define SCI_CLEARALLREPRESENTATIONS 2770 1078 | #define SC_REPRESENTATION_PLAIN 0 1079 | #define SC_REPRESENTATION_BLOB 1 1080 | #define SC_REPRESENTATION_COLOUR 0x10 1081 | #define SCI_SETREPRESENTATIONAPPEARANCE 2766 1082 | #define SCI_GETREPRESENTATIONAPPEARANCE 2767 1083 | #define SCI_SETREPRESENTATIONCOLOUR 2768 1084 | #define SCI_GETREPRESENTATIONCOLOUR 2769 1085 | #define SCI_EOLANNOTATIONSETTEXT 2740 1086 | #define SCI_EOLANNOTATIONGETTEXT 2741 1087 | #define SCI_EOLANNOTATIONSETSTYLE 2742 1088 | #define SCI_EOLANNOTATIONGETSTYLE 2743 1089 | #define SCI_EOLANNOTATIONCLEARALL 2744 1090 | #define EOLANNOTATION_HIDDEN 0x0 1091 | #define EOLANNOTATION_STANDARD 0x1 1092 | #define EOLANNOTATION_BOXED 0x2 1093 | #define EOLANNOTATION_STADIUM 0x100 1094 | #define EOLANNOTATION_FLAT_CIRCLE 0x101 1095 | #define EOLANNOTATION_ANGLE_CIRCLE 0x102 1096 | #define EOLANNOTATION_CIRCLE_FLAT 0x110 1097 | #define EOLANNOTATION_FLATS 0x111 1098 | #define EOLANNOTATION_ANGLE_FLAT 0x112 1099 | #define EOLANNOTATION_CIRCLE_ANGLE 0x120 1100 | #define EOLANNOTATION_FLAT_ANGLE 0x121 1101 | #define EOLANNOTATION_ANGLES 0x122 1102 | #define SCI_EOLANNOTATIONSETVISIBLE 2745 1103 | #define SCI_EOLANNOTATIONGETVISIBLE 2746 1104 | #define SCI_EOLANNOTATIONSETSTYLEOFFSET 2747 1105 | #define SCI_EOLANNOTATIONGETSTYLEOFFSET 2748 1106 | #define SC_SUPPORTS_LINE_DRAWS_FINAL 0 1107 | #define SC_SUPPORTS_PIXEL_DIVISIONS 1 1108 | #define SC_SUPPORTS_FRACTIONAL_STROKE_WIDTH 2 1109 | #define SC_SUPPORTS_TRANSLUCENT_STROKE 3 1110 | #define SC_SUPPORTS_PIXEL_MODIFICATION 4 1111 | #define SC_SUPPORTS_THREAD_SAFE_MEASURE_WIDTHS 5 1112 | #define SCI_SUPPORTSFEATURE 2750 1113 | #define SC_LINECHARACTERINDEX_NONE 0 1114 | #define SC_LINECHARACTERINDEX_UTF32 1 1115 | #define SC_LINECHARACTERINDEX_UTF16 2 1116 | #define SCI_GETLINECHARACTERINDEX 2710 1117 | #define SCI_ALLOCATELINECHARACTERINDEX 2711 1118 | #define SCI_RELEASELINECHARACTERINDEX 2712 1119 | #define SCI_LINEFROMINDEXPOSITION 2713 1120 | #define SCI_INDEXPOSITIONFROMLINE 2714 1121 | #define SCI_STARTRECORD 3001 1122 | #define SCI_STOPRECORD 3002 1123 | #define SCI_GETLEXER 4002 1124 | #define SCI_COLOURISE 4003 1125 | #define SCI_SETPROPERTY 4004 1126 | #define KEYWORDSET_MAX 30 1127 | #define SCI_SETKEYWORDS 4005 1128 | #define SCI_GETPROPERTY 4008 1129 | #define SCI_GETPROPERTYEXPANDED 4009 1130 | #define SCI_GETPROPERTYINT 4010 1131 | #define SCI_GETLEXERLANGUAGE 4012 1132 | #define SCI_PRIVATELEXERCALL 4013 1133 | #define SCI_PROPERTYNAMES 4014 1134 | #define SC_TYPE_BOOLEAN 0 1135 | #define SC_TYPE_INTEGER 1 1136 | #define SC_TYPE_STRING 2 1137 | #define SCI_PROPERTYTYPE 4015 1138 | #define SCI_DESCRIBEPROPERTY 4016 1139 | #define SCI_DESCRIBEKEYWORDSETS 4017 1140 | #define SCI_GETLINEENDTYPESSUPPORTED 4018 1141 | #define SCI_ALLOCATESUBSTYLES 4020 1142 | #define SCI_GETSUBSTYLESSTART 4021 1143 | #define SCI_GETSUBSTYLESLENGTH 4022 1144 | #define SCI_GETSTYLEFROMSUBSTYLE 4027 1145 | #define SCI_GETPRIMARYSTYLEFROMSTYLE 4028 1146 | #define SCI_FREESUBSTYLES 4023 1147 | #define SCI_SETIDENTIFIERS 4024 1148 | #define SCI_DISTANCETOSECONDARYSTYLES 4025 1149 | #define SCI_GETSUBSTYLEBASES 4026 1150 | #define SCI_GETNAMEDSTYLES 4029 1151 | #define SCI_NAMEOFSTYLE 4030 1152 | #define SCI_TAGSOFSTYLE 4031 1153 | #define SCI_DESCRIPTIONOFSTYLE 4032 1154 | #define SCI_SETILEXER 4033 1155 | #define SC_MOD_NONE 0x0 1156 | #define SC_MOD_INSERTTEXT 0x1 1157 | #define SC_MOD_DELETETEXT 0x2 1158 | #define SC_MOD_CHANGESTYLE 0x4 1159 | #define SC_MOD_CHANGEFOLD 0x8 1160 | #define SC_PERFORMED_USER 0x10 1161 | #define SC_PERFORMED_UNDO 0x20 1162 | #define SC_PERFORMED_REDO 0x40 1163 | #define SC_MULTISTEPUNDOREDO 0x80 1164 | #define SC_LASTSTEPINUNDOREDO 0x100 1165 | #define SC_MOD_CHANGEMARKER 0x200 1166 | #define SC_MOD_BEFOREINSERT 0x400 1167 | #define SC_MOD_BEFOREDELETE 0x800 1168 | #define SC_MULTILINEUNDOREDO 0x1000 1169 | #define SC_STARTACTION 0x2000 1170 | #define SC_MOD_CHANGEINDICATOR 0x4000 1171 | #define SC_MOD_CHANGELINESTATE 0x8000 1172 | #define SC_MOD_CHANGEMARGIN 0x10000 1173 | #define SC_MOD_CHANGEANNOTATION 0x20000 1174 | #define SC_MOD_CONTAINER 0x40000 1175 | #define SC_MOD_LEXERSTATE 0x80000 1176 | #define SC_MOD_INSERTCHECK 0x100000 1177 | #define SC_MOD_CHANGETABSTOPS 0x200000 1178 | #define SC_MOD_CHANGEEOLANNOTATION 0x400000 1179 | #define SC_MODEVENTMASKALL 0x7FFFFF 1180 | #define SC_UPDATE_NONE 0x0 1181 | #define SC_UPDATE_CONTENT 0x1 1182 | #define SC_UPDATE_SELECTION 0x2 1183 | #define SC_UPDATE_V_SCROLL 0x4 1184 | #define SC_UPDATE_H_SCROLL 0x8 1185 | #define SCEN_CHANGE 768 1186 | #define SCEN_SETFOCUS 512 1187 | #define SCEN_KILLFOCUS 256 1188 | #define SCK_DOWN 300 1189 | #define SCK_UP 301 1190 | #define SCK_LEFT 302 1191 | #define SCK_RIGHT 303 1192 | #define SCK_HOME 304 1193 | #define SCK_END 305 1194 | #define SCK_PRIOR 306 1195 | #define SCK_NEXT 307 1196 | #define SCK_DELETE 308 1197 | #define SCK_INSERT 309 1198 | #define SCK_ESCAPE 7 1199 | #define SCK_BACK 8 1200 | #define SCK_TAB 9 1201 | #define SCK_RETURN 13 1202 | #define SCK_ADD 310 1203 | #define SCK_SUBTRACT 311 1204 | #define SCK_DIVIDE 312 1205 | #define SCK_WIN 313 1206 | #define SCK_RWIN 314 1207 | #define SCK_MENU 315 1208 | #define SCMOD_NORM 0 1209 | #define SCMOD_SHIFT 1 1210 | #define SCMOD_CTRL 2 1211 | #define SCMOD_ALT 4 1212 | #define SCMOD_SUPER 8 1213 | #define SCMOD_META 16 1214 | #define SC_AC_FILLUP 1 1215 | #define SC_AC_DOUBLECLICK 2 1216 | #define SC_AC_TAB 3 1217 | #define SC_AC_NEWLINE 4 1218 | #define SC_AC_COMMAND 5 1219 | #define SC_CHARACTERSOURCE_DIRECT_INPUT 0 1220 | #define SC_CHARACTERSOURCE_TENTATIVE_INPUT 1 1221 | #define SC_CHARACTERSOURCE_IME_RESULT 2 1222 | #define SCN_STYLENEEDED 2000 1223 | #define SCN_CHARADDED 2001 1224 | #define SCN_SAVEPOINTREACHED 2002 1225 | #define SCN_SAVEPOINTLEFT 2003 1226 | #define SCN_MODIFYATTEMPTRO 2004 1227 | #define SCN_KEY 2005 1228 | #define SCN_DOUBLECLICK 2006 1229 | #define SCN_UPDATEUI 2007 1230 | #define SCN_MODIFIED 2008 1231 | #define SCN_MACRORECORD 2009 1232 | #define SCN_MARGINCLICK 2010 1233 | #define SCN_NEEDSHOWN 2011 1234 | #define SCN_PAINTED 2013 1235 | #define SCN_USERLISTSELECTION 2014 1236 | #define SCN_URIDROPPED 2015 1237 | #define SCN_DWELLSTART 2016 1238 | #define SCN_DWELLEND 2017 1239 | #define SCN_ZOOM 2018 1240 | #define SCN_HOTSPOTCLICK 2019 1241 | #define SCN_HOTSPOTDOUBLECLICK 2020 1242 | #define SCN_CALLTIPCLICK 2021 1243 | #define SCN_AUTOCSELECTION 2022 1244 | #define SCN_INDICATORCLICK 2023 1245 | #define SCN_INDICATORRELEASE 2024 1246 | #define SCN_AUTOCCANCELLED 2025 1247 | #define SCN_AUTOCCHARDELETED 2026 1248 | #define SCN_HOTSPOTRELEASECLICK 2027 1249 | #define SCN_FOCUSIN 2028 1250 | #define SCN_FOCUSOUT 2029 1251 | #define SCN_AUTOCCOMPLETED 2030 1252 | #define SCN_MARGINRIGHTCLICK 2031 1253 | #define SCN_AUTOCSELECTIONCHANGE 2032 1254 | #ifndef SCI_DISABLE_PROVISIONAL 1255 | #define SC_BIDIRECTIONAL_DISABLED 0 1256 | #define SC_BIDIRECTIONAL_L2R 1 1257 | #define SC_BIDIRECTIONAL_R2L 2 1258 | #define SCI_GETBIDIRECTIONAL 2708 1259 | #define SCI_SETBIDIRECTIONAL 2709 1260 | #endif 1261 | 1262 | #define SC_SEARCHRESULT_LINEBUFFERMAXLENGTH 2048 1263 | #define SCI_GETBOOSTREGEXERRMSG 5000 1264 | #define SCN_FOLDINGSTATECHANGED 2081 1265 | /* --Autogenerated -- end of section automatically generated from Scintilla.iface */ 1266 | 1267 | #endif 1268 | 1269 | /* These structures are defined to be exactly the same shape as the Win32 1270 | * CHARRANGE, TEXTRANGE, FINDTEXTEX, FORMATRANGE, and NMHDR structs. 1271 | * So older code that treats Scintilla as a RichEdit will work. */ 1272 | 1273 | struct Sci_CharacterRange { 1274 | Sci_PositionCR cpMin; 1275 | Sci_PositionCR cpMax; 1276 | }; 1277 | 1278 | struct Sci_CharacterRangeFull { 1279 | Sci_Position cpMin; 1280 | Sci_Position cpMax; 1281 | }; 1282 | 1283 | struct Sci_TextRange { 1284 | struct Sci_CharacterRange chrg; 1285 | char *lpstrText; 1286 | }; 1287 | 1288 | struct Sci_TextRangeFull { 1289 | struct Sci_CharacterRangeFull chrg; 1290 | char *lpstrText; 1291 | }; 1292 | 1293 | struct Sci_TextToFind { 1294 | struct Sci_CharacterRange chrg; 1295 | const char *lpstrText; 1296 | struct Sci_CharacterRange chrgText; 1297 | }; 1298 | 1299 | struct Sci_TextToFindFull { 1300 | struct Sci_CharacterRangeFull chrg; 1301 | const char *lpstrText; 1302 | struct Sci_CharacterRangeFull chrgText; 1303 | }; 1304 | 1305 | typedef void *Sci_SurfaceID; 1306 | 1307 | struct Sci_Rectangle { 1308 | int left; 1309 | int top; 1310 | int right; 1311 | int bottom; 1312 | }; 1313 | 1314 | /* This structure is used in printing and requires some of the graphics types 1315 | * from Platform.h. Not needed by most client code. */ 1316 | 1317 | struct Sci_RangeToFormat { 1318 | Sci_SurfaceID hdc; 1319 | Sci_SurfaceID hdcTarget; 1320 | struct Sci_Rectangle rc; 1321 | struct Sci_Rectangle rcPage; 1322 | struct Sci_CharacterRange chrg; 1323 | }; 1324 | 1325 | struct Sci_RangeToFormatFull { 1326 | Sci_SurfaceID hdc; 1327 | Sci_SurfaceID hdcTarget; 1328 | struct Sci_Rectangle rc; 1329 | struct Sci_Rectangle rcPage; 1330 | struct Sci_CharacterRangeFull chrg; 1331 | }; 1332 | 1333 | #ifndef __cplusplus 1334 | /* For the GTK+ platform, g-ir-scanner needs to have these typedefs. This 1335 | * is not required in C++ code and actually seems to break ScintillaEditPy */ 1336 | typedef struct Sci_NotifyHeader Sci_NotifyHeader; 1337 | typedef struct SCNotification SCNotification; 1338 | #endif 1339 | 1340 | struct Sci_NotifyHeader { 1341 | /* Compatible with Windows NMHDR. 1342 | * hwndFrom is really an environment specific window handle or pointer 1343 | * but most clients of Scintilla.h do not have this type visible. */ 1344 | void *hwndFrom; 1345 | uptr_t idFrom; 1346 | unsigned int code; 1347 | }; 1348 | 1349 | struct SCNotification { 1350 | Sci_NotifyHeader nmhdr; 1351 | Sci_Position position; 1352 | /* SCN_STYLENEEDED, SCN_DOUBLECLICK, SCN_MODIFIED, SCN_MARGINCLICK, */ 1353 | /* SCN_NEEDSHOWN, SCN_DWELLSTART, SCN_DWELLEND, SCN_CALLTIPCLICK, */ 1354 | /* SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK, */ 1355 | /* SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */ 1356 | /* SCN_USERLISTSELECTION, SCN_AUTOCSELECTION */ 1357 | 1358 | int ch; 1359 | /* SCN_CHARADDED, SCN_KEY, SCN_AUTOCCOMPLETED, SCN_AUTOCSELECTION, */ 1360 | /* SCN_USERLISTSELECTION */ 1361 | int modifiers; 1362 | /* SCN_KEY, SCN_DOUBLECLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, */ 1363 | /* SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */ 1364 | 1365 | int modificationType; /* SCN_MODIFIED */ 1366 | const char *text; 1367 | /* SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION, SCN_URIDROPPED */ 1368 | 1369 | Sci_Position length; /* SCN_MODIFIED */ 1370 | Sci_Position linesAdded; /* SCN_MODIFIED */ 1371 | int message; /* SCN_MACRORECORD */ 1372 | uptr_t wParam; /* SCN_MACRORECORD */ 1373 | sptr_t lParam; /* SCN_MACRORECORD */ 1374 | Sci_Position line; /* SCN_MODIFIED */ 1375 | int foldLevelNow; /* SCN_MODIFIED */ 1376 | int foldLevelPrev; /* SCN_MODIFIED */ 1377 | int margin; /* SCN_MARGINCLICK */ 1378 | int listType; /* SCN_USERLISTSELECTION */ 1379 | int x; /* SCN_DWELLSTART, SCN_DWELLEND */ 1380 | int y; /* SCN_DWELLSTART, SCN_DWELLEND */ 1381 | int token; /* SCN_MODIFIED with SC_MOD_CONTAINER */ 1382 | Sci_Position annotationLinesAdded; /* SCN_MODIFIED with SC_MOD_CHANGEANNOTATION */ 1383 | int updated; /* SCN_UPDATEUI */ 1384 | int listCompletionMethod; 1385 | /* SCN_AUTOCSELECTION, SCN_AUTOCCOMPLETED, SCN_USERLISTSELECTION, */ 1386 | int characterSource; /* SCN_CHARADDED */ 1387 | }; 1388 | 1389 | #include 1390 | struct SearchResultMarkingLine { // each line could have several segments if user want to see only 1 found line which contains several results 1391 | std::vector> _segmentPostions; // a vector of pair of start & end of occurrence for colourizing 1392 | }; 1393 | 1394 | struct SearchResultMarkings { 1395 | intptr_t _length; 1396 | SearchResultMarkingLine *_markings; 1397 | }; 1398 | #ifdef INCLUDE_DEPRECATED_FEATURES 1399 | 1400 | #define SCI_SETKEYSUNICODE 2521 1401 | #define SCI_GETKEYSUNICODE 2522 1402 | 1403 | #define SCI_GETTWOPHASEDRAW 2283 1404 | #define SCI_SETTWOPHASEDRAW 2284 1405 | 1406 | #define CharacterRange Sci_CharacterRange 1407 | #define TextRange Sci_TextRange 1408 | #define TextToFind Sci_TextToFind 1409 | #define RangeToFormat Sci_RangeToFormat 1410 | #define NotifyHeader Sci_NotifyHeader 1411 | 1412 | #define SCI_SETSTYLEBITS 2090 1413 | #define SCI_GETSTYLEBITS 2091 1414 | #define SCI_GETSTYLEBITSNEEDED 4011 1415 | 1416 | #define INDIC0_MASK 0x20 1417 | #define INDIC1_MASK 0x40 1418 | #define INDIC2_MASK 0x80 1419 | #define INDICS_MASK 0xE0 1420 | 1421 | #endif 1422 | 1423 | #endif 1424 | --------------------------------------------------------------------------------