+chg: Scintilla Python generator methods for embeddable Python

This commit is contained in:
METANEOCORTEX\Kotti 2021-08-12 00:42:08 +02:00
parent 28d0829c58
commit c5c64e0541
6 changed files with 3402 additions and 12 deletions

File diff suppressed because it is too large Load Diff

View 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_%

View File

@ -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

View File

@ -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] (

View File

@ -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

View File

@ -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);