Last active
June 8, 2024 12:43
-
-
Save Beercow/980a533f0b9f13b454568812fa1df70a to your computer and use it in GitHub Desktop.
Revisions
-
Beercow revised this gist
Aug 11, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ 1. Install Notepad++ (check "set as default HTML editor" to replace Notepad in IE). 2. Run Notepad++, update its plugins, and install "NppExec" via Plugins, Plugin Manager. 3. Download [DBGpPlugin](https://sourceforge.net/projects/npp-plugins/files/DBGP%20Plugin/DBGP%20Plugin%20v0.13%20beta/DBGpPlugin_0_13b_dll.zip/download) . Place in C:\Program Files (x86)\Notepad++\plugins\DBGpPlugin 4. Use [this link](https://mega.nz/file/Ng8mxTST#eu5ExRxudBxNFdbFEqbbT7hKNyoRN-jARB-JeI2NnMU) to download a modified version of the Komodo Remote Debugging Package. Place in plugin directory. (Unmodified Komodo package does not work with DBGpPlugin) **Also contains DBGpPlugin** 5. Enter these scripts for Python debugging: Press <kbd>F6</kbd> to create a NppExec Execute script, save as "Run Python": -
Beercow revised this gist
Feb 24, 2020 . 1 changed file with 27 additions and 19 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -41,29 +41,37 @@ 8. [Better Python Standard Library Autocompletion for Notepad++](http://blog.extramaster.net/2016/07/better-python-standard-library.html) 9. Configure DBGp: * Plugins -> DBGp -> Config... * Check "Bypass all mapping (local windows setup)" * Check "Refresh local context on every step" * Check "Refresh global context on every step" * Check "Break at first line when debugging starts" 10. Enter these scripts for Python DBGp debugging: Press <kbd>F6</kbd> to create a NppExec Execute script, save as "python2 debug": ``` NPP_SAVE cd "$(CURRENT_DIRECTORY)" NPP_MENUCOMMAND Plugins\DBGp\Debugger INPUTBOX "Command Line Arguments: " py -2 "$(NPP_DIRECTORY)\plugins\PythonDebug\pydbgp.py" -d 127.0.0.1:9000 "$(FILE_NAME)" $(INPUT) ``` Press <kbd>F6</kbd> to create a NppExec Execute script, save as "python3 debug": ``` NPP_SAVE cd "$(CURRENT_DIRECTORY)" NPP_MENUCOMMAND Plugins\DBGp\Debugger INPUTBOX "Command Line Arguments: " py -3 "$(NPP_DIRECTORY)\plugins\PythonDebug\py3_dbgp.py" -d 127.0.0.1:9000 "$(FILE_NAME)" $(INPUT) ``` 11. **If you have a dark theme, use this to make tool tips dark:** Press <kbd>F6</kbd> to create a NppExec Execute script, save as "SetCallTipStyle": @@ -81,7 +89,7 @@ Then, navigate to Plugins -> NppExec -> Advanced Options offers the option Execute this script when Notepad++ starts on the upper right area of the config dialog. Select the script name under which you saved the line (e.g. SetCallTipStlye) 12. Not related to python. Replace perl section in functionList.xml with: <!-- ======================================================== [ PERL ] --> <!-- PERL - Practical Extraction and Reporting Language --> -
Beercow revised this gist
Feb 21, 2020 . 1 changed file with 85 additions and 43 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,60 +1,102 @@ 1. Install Notepad++ (check "set as default HTML editor" to replace Notepad in IE). 2. Run Notepad++, update its plugins, and install "NppExec" via Plugins, Plugin Manager. 3. Download [DBGpPlugin](https://sourceforge.net/projects/npp-plugins/files/DBGP%20Plugin/DBGP%20Plugin%20v0.13%20beta/DBGpPlugin_0_13b_dll.zip/download) . Place in C:\Program Files (x86)\Notepad++\plugins\DBGpPlugin 4. Use [this link](https://mega.nz/#!54dH3KiC!tm0OgraosghuaTvTSscNYY0aIFFgGsQhZxKauW5GDzQ) to download a modified version of the Komodo Remote Debugging Package. Place in plugin directory. (Unmodified Komodo package does not work with DBGpPlugin) **Also contains DBGpPlugin** 5. Enter these scripts for Python debugging: Press <kbd>F6</kbd> to create a NppExec Execute script, save as "Run Python": ``` cd "$(CURRENT_DIRECTORY)" py.exe "$(FILE_NAME)" ``` To mark and link (by double-click) errors, press <kbd>Shift</kbd>+<kbd>F6</kbd> to add active Console Output Filters, with Red set to `FF`: ``` *File "%FILE%", line %LINE%,* ``` 6. And context-sensitive help using <kbd>Shift</kbd>+<kbd>F1</kbd> (because <kbd>F1</kbd> alone now shows About): ``` <Command name="Get Python help" Ctrl="no" Alt="no" Shift="yes" Key="112">https://www.google.nl/#q=python+$(CURRENT_WORD)</Command> ``` in %appdata%\Notepad++\shortcuts.xml (use a different editor for this to work) 7. Add style checking using PyLint (pip install pylint): Press <kbd>F6</kbd> to create a NppExec Execute script, save as "Run PyLint": ``` C:\Python27\Scripts\pylint.exe --reports=n -f parseable "$(FULL_CURRENT_PATH)" ``` To mark and link (by double-click) errors, press <kbd>Shift</kbd>+<kbd>F6</kbd> to add active Console Output Filters, with Red set to `FF`: ``` %FILE%:%LINE%:* ``` 8. [Better Python Standard Library Autocompletion for Notepad++](http://blog.extramaster.net/2016/07/better-python-standard-library.html) 9. Enter these scripts for Python DBGp debugging: Press <kbd>F6</kbd> to create a NppExec Execute script, save as "python2 debug": ``` NPP_SAVE cd "$(CURRENT_DIRECTORY)" NPP_MENUCOMMAND Plugins\DBGp\Debugger INPUTBOX "Command Line Arguments: " py -2 "$(NPP_DIRECTORY)\plugins\PythonDebug\pydbgp.py" -d 127.0.0.1:9000 "$(FILE_NAME)" $(INPUT) ``` Press <kbd>F6</kbd> to create a NppExec Execute script, save as "python3 debug": ``` NPP_SAVE cd "$(CURRENT_DIRECTORY)" NPP_MENUCOMMAND Plugins\DBGp\Debugger INPUTBOX "Command Line Arguments: " py -3 "$(NPP_DIRECTORY)\plugins\PythonDebug\py3_dbgp.py" -d 127.0.0.1:9000 "$(FILE_NAME)" $(INPUT) ``` 10. **If you have a dark theme, use this to make tool tips dark:** Press <kbd>F6</kbd> to create a NppExec Execute script, save as "SetCallTipStyle": ``` NPP_CONSOLE - // use CALLTIPSTYLE instead DEFAULT SCI_SENDMSG SCI_CALLTIPUSESTYLE 0 // background to black ( 0 ) SCI_SENDMSG SCI_CALLTIPSETBACK 0xa4a4a4 // foreground to white ( 0xffffff ) SCI_SENDMSG SCI_CALLTIPSETFORE 0xffffff NPP_CONSOLE + ``` Then, navigate to Plugins -> NppExec -> Advanced Options offers the option Execute this script when Notepad++ starts on the upper right area of the config dialog. Select the script name under which you saved the line (e.g. SetCallTipStlye) 11. Not related to python. Replace perl section in functionList.xml with: <!-- ======================================================== [ PERL ] --> <!-- PERL - Practical Extraction and Reporting Language --> <parser displayName="PERL" id ="perl_function" > <function mainExpr="^\s*(?<!#)\s*sub\s+\w+\s*\(?[^\)\(]*?\)?[\n\s]*\{" > <functionName> <nameExpr expr="(sub\s+)?\K\w+" /> </functionName> <className> <nameExpr expr="\w+(?=\s*::)" /> </className> </function> </parser> -
Beercow revised this gist
Dec 9, 2019 . 1 changed file with 21 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,4 +37,24 @@ in %appdata%\Notepad++\shortcuts.xml (use a different editor for this to work) %FILE%:%LINE%:* ``` 6. [Better Python Standard Library Autocompletion for Notepad++](http://blog.extramaster.net/2016/07/better-python-standard-library.html) 7. Not related to python. Replace perl section in functionList.xml with: <!-- ======================================================== [ PERL ] --> <!-- PERL - Practical Extraction and Reporting Language --> <parser displayName="PERL" id ="perl_function" > <function mainExpr="^\s*(?<!#)\s*sub\s+\w+\s*\(?[^\)\(]*?\)?[\n\s]*\{" > <functionName> <nameExpr expr="(sub\s+)?\K\w+" /> </functionName> <className> <nameExpr expr="\w+(?=\s*::)" /> </className> </function> </parser> -
Beercow revised this gist
Dec 18, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,4 +37,4 @@ in %appdata%\Notepad++\shortcuts.xml (use a different editor for this to work) %FILE%:%LINE%:* ``` 6. [Better Python Standard Library Autocompletion for Notepad++](http://blog.extramaster.net/2016/07/better-python-standard-library.html) -
Beercow created this gist
Dec 18, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,40 @@ 1. Install Notepad++ (check "set as default HTML editor" to replace Notepad in IE). 2. Run Notepad++, update its plugins, and install "NppExec" via Plugins, Plugin Manager. 3. Enter these scripts for Python debugging: Press <kbd>F6</kbd> to create a NppExec Execute script, save as "Run Python": ``` cd "$(CURRENT_DIRECTORY)" py.exe "$(FILE_NAME)" ``` To mark and link (by double-click) errors, press <kbd>Shift</kbd>+<kbd>F6</kbd> to add active Console Output Filters, with Red set to `FF`: ``` *File "%FILE%", line %LINE%,* ``` 4. And context-sensitive help using <kbd>Shift</kbd>+<kbd>F1</kbd> (because <kbd>F1</kbd> alone now shows About): ``` <Command name="Get Python help" Ctrl="no" Alt="no" Shift="yes" Key="112">https://www.google.nl/#q=python+$(CURRENT_WORD)</Command> ``` in %appdata%\Notepad++\shortcuts.xml (use a different editor for this to work) 5. Add style checking using PyLint (pip install pylint): Press <kbd>F6</kbd> to create a NppExec Execute script, save as "Run PyLint": ``` C:\Python27\Scripts\pylint.exe --reports=n -f parseable "$(FULL_CURRENT_PATH)" ``` To mark and link (by double-click) errors, press <kbd>Shift</kbd>+<kbd>F6</kbd> to add active Console Output Filters, with Red set to `FF`: ``` %FILE%:%LINE%:* ``` 6. [Better Python Standard Library Autocompletion for Notepad++] (http://blog.extramaster.net/2016/07/better-python-standard-library.html)