mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
+chg: Scintilla Python generator methods for embeddable Python
This commit is contained in:
parent
28d0829c58
commit
c5c64e0541
3345
scintilla/call/ScintillaCall.cxx
Normal file
3345
scintilla/call/ScintillaCall.cxx
Normal file
File diff suppressed because it is too large
Load Diff
43
scintilla/scripts/HFacer.cmd
Normal file
43
scintilla/scripts/HFacer.cmd
Normal file
@ -0,0 +1,43 @@
|
||||
@echo off
|
||||
setlocal EnableDelayedExpansion
|
||||
set _THISDIR_=%~dp0
|
||||
rem remove trailing back-slash
|
||||
set _THISDIR_=!_THISDIR_:~,-1!
|
||||
rem transform to foward-slash
|
||||
::~set "_THISDIR_=%_THISDIR_:\=/%"
|
||||
pushd %_THISDIR_%
|
||||
::cls
|
||||
|
||||
|
||||
set _PYTHON_EXE=c:\PortablePrograms\Python396_x64_emb\python.exe
|
||||
|
||||
|
||||
::set _CMD_="%_PYTHON_EXE%" -I -S -m "%~dpn0"
|
||||
set _CMD_="%_PYTHON_EXE%" -I -S "%~dpn0.py"
|
||||
|
||||
set _EXITCODE_=0
|
||||
echo.Calling: %_CMD_%
|
||||
%_CMD_%
|
||||
if not [%ERRORLEVEL%] == [0] (
|
||||
set _EXITCODE_=%ERRORLEVEL%
|
||||
)
|
||||
|
||||
|
||||
goto :END
|
||||
rem ----------------------------------------------------------------------------
|
||||
|
||||
|
||||
rem call :RESOLVE_PATH WORKINGDIRPARENT ".."
|
||||
:RESOLVE_PATH
|
||||
set %1=%~dpfn2
|
||||
goto:eof
|
||||
rem ----------------------------------------------------------------------------
|
||||
|
||||
|
||||
:END
|
||||
::pause
|
||||
popd
|
||||
echo.ERRORLEVEL=%_EXITCODE_%
|
||||
endlocal & set _EXITCODE_=%_EXITCODE_%
|
||||
:: -call exit only in case of
|
||||
if not [%_EXITCODE_%]==[0] exit /b %_EXITCODE_%
|
||||
@ -4,6 +4,10 @@
|
||||
# Implemented 2000 by Neil Hodgson neilh@scintilla.org
|
||||
# Requires Python 3.6 or later
|
||||
|
||||
import os, sys
|
||||
_this_dir = os.path.dirname(__file__)
|
||||
if _this_dir not in sys.path: sys.path.append(_this_dir)
|
||||
|
||||
import pathlib
|
||||
import Face
|
||||
import FileGenerator
|
||||
|
||||
@ -9,11 +9,13 @@ pushd %_THISDIR_%
|
||||
::cls
|
||||
|
||||
|
||||
set _PYTHON_EXE=c:\PortablePrograms\Python396_x64_emb\python.exe
|
||||
|
||||
|
||||
::set _CMD_="%_PYTHON_EXE%" -I -S -m "%~dpn0"
|
||||
set _CMD_="%_PYTHON_EXE%" -I -S "%~dpn0.py"
|
||||
|
||||
set _EXITCODE_=0
|
||||
set _PYTHON_EXE=C:\Program Files\Python38\python.exe
|
||||
|
||||
|
||||
set _CMD_="%_PYTHON_EXE%" "%~dpn0.py"
|
||||
echo.Calling: %_CMD_%
|
||||
%_CMD_%
|
||||
if not [%ERRORLEVEL%] == [0] (
|
||||
|
||||
@ -4,6 +4,10 @@
|
||||
# Implemented 2019 by Neil Hodgson neilh@scintilla.org
|
||||
# Requires Python 3.6 or later
|
||||
|
||||
import os, sys
|
||||
_this_dir = os.path.dirname(__file__)
|
||||
if _this_dir not in sys.path: sys.path.append(_this_dir)
|
||||
|
||||
import pathlib
|
||||
|
||||
import Face
|
||||
|
||||
@ -2060,14 +2060,6 @@ static void _InitializeSciEditCtrl(HWND hwndEditCtrl)
|
||||
SciCall_IndicSetAlpha(INDIC_NP3_MULTI_EDIT, 60);
|
||||
SciCall_IndicSetOutlineAlpha(INDIC_NP3_MULTI_EDIT, 180);
|
||||
|
||||
//SciCall_IndicSetStyle();
|
||||
//SciCall_IndicSetUnder();
|
||||
//SciCall_IndicSetFore();
|
||||
//SciCall_IndicSetAlpha();
|
||||
//SciCall_IndicSetOutlineAlpha();
|
||||
//SciCall_IndicSetHoverStyle();
|
||||
//SciCall_IndicSetHoverFore();
|
||||
|
||||
// No SC_AUTOMATICFOLD_CLICK, performed by
|
||||
SciCall_SetAutomaticFold(SC_AUTOMATICFOLD_SHOW | SC_AUTOMATICFOLD_CHANGE);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user