Difference between revisions of "Setting up a Notepad++ (SourceMod)"
m (→Plugin NppExec) |
m (Newer Notepad++ version use now autoCompletion folder.) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
<br/> | <br/> | ||
__TOC__ | __TOC__ | ||
− | + | [https://youtu.be/RZ_sv6DtLQ8?list=PLDz5Z5KigHNV0QDPeO3bCl09GblHV0pX0 YouTube Video Setting up a Notepad++ (SourceMod) - Wiki guide] | |
==SourcePawn syntax highlight & autocompletion== | ==SourcePawn syntax highlight & autocompletion== | ||
Line 13: | Line 13: | ||
Move '''sourcemod.xml''' file into Notepad++ <span style="font-family:courier">...plugins\APIs</span> folder | Move '''sourcemod.xml''' file into Notepad++ <span style="font-family:courier">...plugins\APIs</span> folder | ||
C:\Program Files (x86)\notepad++\plugins\APIs\sourcemod.xml | C:\Program Files (x86)\notepad++\plugins\APIs\sourcemod.xml | ||
+ | |||
+ | *Update 31.3.2020 -Since Notepad++ 7.6.x and later | ||
+ | C:\Program Files (x86)\notepad++\<span style="color:red">autoCompletion</span>\sourcemod.xml | ||
<br/> | <br/> | ||
Open Notepad++ and select <span style="font-family:courier">Language -> Define your language...</span><br/> | Open Notepad++ and select <span style="font-family:courier">Language -> Define your language...</span><br/> | ||
Line 23: | Line 26: | ||
==Plugin NppExec== | ==Plugin NppExec== | ||
− | Install NppExec Notepad++ plugin.<br/> | + | Install NppExec Notepad++ plugin (manually or through Plugin Manager).<br/> |
:https://sourceforge.net/projects/npp-plugins/files/NppExec/<br/> | :https://sourceforge.net/projects/npp-plugins/files/NppExec/<br/> | ||
− | C:\Program Files (x86)\notepad++\plugins\NppExec.dll | + | C:\Program Files (x86)\notepad++\plugins\NppExec\NppExec.dll |
Restart NotePad++<br/> | Restart NotePad++<br/> | ||
<br/> | <br/> | ||
Line 66: | Line 69: | ||
---- | ---- | ||
− | --[[User:Bacardi|Bacardi]] ([[User talk:Bacardi|talk]]) 08: | + | --[[User:Bacardi|Bacardi]] ([[User talk:Bacardi|talk]]) 08:39, 31 March 2020 (CDT) |
[[Category:SourceMod for beginners]] | [[Category:SourceMod for beginners]] |
Latest revision as of 07:39, 31 March 2020
This is guide to setting up NotePad++
Install Notepad++ 32-bit x86 text editor
Contents
YouTube Video Setting up a Notepad++ (SourceMod) - Wiki guide
SourcePawn syntax highlight & autocompletion
Download npp-docs zip file
and extract files on your desktop.
Move sourcemod.xml file into Notepad++ ...plugins\APIs folder
C:\Program Files (x86)\notepad++\plugins\APIs\sourcemod.xml
*Update 31.3.2020 -Since Notepad++ 7.6.x and later
C:\Program Files (x86)\notepad++\autoCompletion\sourcemod.xml
Open Notepad++ and select Language -> Define your language...
Select Import...
and open userDefineLang.xml file
Restart Notepad++
Plugin NppExec
Install NppExec Notepad++ plugin (manually or through Plugin Manager).
C:\Program Files (x86)\notepad++\plugins\NppExec\NppExec.dll
Restart NotePad++
Choose Plugins -> NppExec -> Execute... (F6)
Add this script:
NPP_SAVE cd "$(CURRENT_DIRECTORY)" spcomp.exe "$(FILE_NAME)" cmd /q /c move "$(CURRENT_DIRECTORY)\$(NAME_PART).smx" "$(CURRENT_DIRECTORY)\..\plugins\$(NAME_PART).smx"
Save -> name it sourcemod -> Save
Choose Plugins -> NppExec -> Console Output Filters... (Shift+F6)
✔️ | %FILE%(%LINE%) : error * | 0x99 | 0x00 | 0x00 | B |
✔️ | %FILE%(%LINE%) : warning * | 0x00 | 0x50 | 0x99 | I |
Choose Plugins -> NppExec -> NppExec Advanced Options...
Select Associated scipt: sourcemod, then click Add/Modify button. Ok and restart Notepad++
Choose Settings -> Shortcut Mapper...
and go Plugin Commands tab.
Find and clear Execute... = F6 button.
Find sourcemod = and Modify F6 button in this line.
Testing compiling Sourcemod plugin
Go SourceMod scripting folder, where you find *.sp files.
Make copy of any file for testing purpose and open it with NotePad++.
When you hit F6 key, NotePad++ should:
- Save your file
- Run CMD and compile current *.sp file to *.smx
- Move compiled *.smx file from scripting folder to SourceMod plugins folder.