Npp User Manual
User Manual:
Open the PDF directly: View PDF .
Page Count: 22
1. Introduction
2. FileManagement
3. SessionManagement
4. Editing
5. DocumentProperties
6. Searching
7. Display
8. Macros
9. Commands
10. WindowsDialog
11. GUIElements
12. SwitchingbetweenDocuments
13. Languages
14. Settings
15. Plugins
16. CommandLine
17. ControlFiles
18. ShellExtension
19. Upgrading
20. FurtherHelp
TableofContents
npp-user-manual
2
Notepad++UserManualThisdocumentisdedicatedtothecountlesslosthoursofbothpeoplehavingtosearchforsimple
answers,andpeoplehavingtoanswerquestionsthatshouldn'thavetobeaskedinthefirstplace.Documentationisalways
hardtoget,gooddocumentationnearlyimpossible.
ThismarkupisbasedinthedefaultappearanceofMicrosoftWindows.Thiscanbedifferentonyourownsystem,butthe
names(text)shouldalwaysthesame.Thisisespeciallyimportantonthescreenshots.Theyareonlyforreference,your
appearanceofNotepad++canbequitedifferent.
Alltheimagesusedinthishelpfileassumethedefaultsettings.Ifyouchangeanyofthesesettings,you'llhavetolookfor
theotherimageinstead,thisismostnoticeablewiththetoolbar(thepositionofimageswillalwaysremainthesame).
Also,whentalkingabouttheleftandrightmousebuttons,thelogicalleftandrightismeant.Thesearethesameasthe
physicalleftandrightmousebuttonsinthecaseofaright-handedsetup.However,ifyouhavealeft-handedsetupyouwill
probablyhavethebuttonsswappedsoactaccordingly.Thismeansingeneralyoudowhatyounormallydoformost
actions,Notepad++mostlyfollowsthestandardWindowsapplicationbehavior.
Likewise,thelayoutisdiscussedasitisdisplayedinaleft-to-rightorder.Onright-to-leftsystems(suchasHebrew)
translatedversionsofNotepad++canhavethedisplayorderreversed,adjustaccordinglyaswell.
Notepad++UserManual
npp-user-manual
3Introduction
Seethesub-sectionstoseeothermethodstomanageyourfiles.
npp-user-manual
4FileManagement
SessionsareasetoffilesopenedinNotepad++.
Theystoretheopenfiles,theactivefile(andwhichview,seethesectionaboutMulti-View),thecurrentselectionand
positioninthefile,thecurrentbookmarks(seeBookmarks)andthecurrentlanguage(seethesectionaboutLanguages).
Usingsessions,youcanopenasetof(related)fileswithoneaction.
npp-user-manual
5SessionManagement
Primarilyeditingfilesisdonebysimplyusingthekeyboard(orthestandardInputMethodEditor(IME)foreasternasian
language)tochangethecontents,insertinganddeletingtextasneeded.
However,Notepad++hasmanytoolsandaidstoassistineditingfiles,mainlytoautomaterepetitivetasksorspeedup
development.
Notepad++isbasedontheScintillaeditcontrolandreliesonittoperformmanyeditingtasks,supplementingitifuseful.
npp-user-manual
6Editing
Adocumenthascertaincharacteristicsinthewayitsstoredonyourhard-disk.Thesefollowingsubjectscontrolsomeof
thoseaspects.
Note:boththedefaultNewlineformatandtheencodingofnewfilescanbeset,seeNewdocumentsettingsformore
details.
Thecurrentpropertiesofadocument,likeitscharactercount,selectionstatisticsandsuch,areavailablethroughtheView-
>Summary.
whichcontainsthefollowinginformation:
Fullyqualifiedactivedocumentpath
Creationdate
Lastmodificationdate
Bytesizeofdocument
Charactercountofthedocument,blanksexcluded
Charactercountofthedocument
Linecount
Sizeofselection(characters,bytesandranges)
NotethatthecharactercountandbytecountarenotafunctionofeachotherinUTF-8(seeEncoding).
npp-user-manual
7DocumentProperties
Therearemultiplemethodstosearch(andreplace)textinfiles.Youcanalsomarksearchresultswithbookmarks,or
highlightthem.
npp-user-manual
8Searching
Thesubjectsdescribedherecontroltheappearanceofthetextinthescreen.
npp-user-manual
9Display
Notepad++iscapableofrecordingsomeofyouractionsyouperformwhileeditingadocument,andreplayingthoselateron
toavoidhavingtorepeatthatsequenceofactions.Thisiscalledamacroandcansaveagreatdealoftime.Macro'scan
beplayedonce,ormultipletimes,evenaslongasisrequiredtorunthroughanentiredocument.Youcansavethemfor
lateruseandassignkeystrokestothemforfastaccess(SeeShortcutMapper).Macro'saresensitivetothecurrentposition
ofthecursorandwill(normallyspeaking)operaterelativeonit.
Torecordamacro,selectMacro->StartRecordingorpressthebuttononthetoolbar.Notepad++willnowkeeptrackofthe
changesyoumakeonadocumentorcertainactionsyouperform.
Tostoprecording,selectMacro->StopRecordingorselectthebuttononthetoolbar.Asanexceptiontomostcommands,
youcantogglethisbehaviorwithaspecialshortcutcombinationthatisnotlistedinthemenubutsolelyintheShortcut
mapper(seeSettings,Shortcutmapper).Bydefault,thisisthecombinationCtrl-Shift-R.
Aftertherecordingisstopped,itwillbestoredinatemporarybuffer.Ifyouhaven'tperformedanyactions,thisbufferwillbe
cleared.Ifyoustartrecordinganothermacrowithoutsavingyourearlierwork,itwillbelost.
Toplaythemacrointhebuffer,selectMacro->Playbackorpressthebutton.Thiswillperformthemacroonceatthecurrent
position.
Tosavethemacrointhebuffer,selectMacro->Savecurrentrecordedmacroorpressthebutton.Adialogwillpopup
askingforanameofthemacroandthedefaultkeycombination.Thesecanlaterbechanged(anddeleted)usingthe
Shortcutmapper(seeShortcutMapper).Whensaved,themacrowillbeavailablefromtheMacromenuortheMacro
playlist.
Toplaythecurrentmacrointhebufferoranysavedmacroonceormultipletimes,selectMacro->Runamacromultiple
times...orpressthebutton.Adialogwillpopupallowingyoutoselectwhatmacrotoperform(buffermacrooranysaved
macro)andhowmanytimes.Youcanalsoopttoperformthemacrountilthecursorreachestheendofthecurrentfile
(startingfromitscurrentposition).Notethatifnomacro'sareavailable,thisdialogisinaccessible.
Toeditordeleteanexistingmacroshortcut,youcanusetheShortcutmapper,whichdisplaysallshortcutsofallkinds,and
allowschangingorremovingakeybinding.TheinterfaceisalsoavailablethroughtheMacro->Modifyshortcut/Delete
macroentryontheMacrosmenu.Notethatthecontentsofamacrodefinitioncanbeeditedonlyintheshortcuts.xmlfile.
npp-user-manual
10Macros
CommandsallowyoutoexecuteapplicationsfromNotepad++,forexampletoopenyourcurrentfileinabrowseror
compileitwithsomeexternalcompiler.Youcanpasstheprogramcommandlineparametersbasedonthecurrentstatusof
yourdocument.
Torunanewcommand:
SselectRun->Run....Adialogwillpopupaskingforthepathtotheprogramandpossibleanycommandlineparameters.
Youcanusethebrowsebuttontosearchforyourprogram.Thedropdownlistprovidesrecentlyrunprograms.The
commandlineargumentscanalsobebasedonthestatusofthecurrentdocument,andarealwaysenclosedin$(...),
where…canbe:
FULL_CURRENT_PATHthefullyqualifiedpathtothecurrentdocument.CURRENT_DIRECTORYThedirectorythe
currentdocumentresidesin.FILE_NAMEThefilenameofthedocument,withoutthedirectory.NAME_PARTThefilename
withouttheextension.EXT_PARTTheextensionofthecurrentdocument.NPP_DIRECTORYThedirectorythatcontains
thenotepad++.exeexecutablethatiscurrentlyrunning.
CURRENT_WORDThecurrentlyselectedtextinthedocument.CURRENT_LINEThecurrentlinenumberthatis
selectedinthedocument(0basedindex,thefirstlineis0).CURRENT_COLUMNThecurrentcolumnthecursor
residesin(0basedindex,thefirstpositiononthelineis0).Forexample,
"$(NPP_DIRECTORY)\notepad++.exe"-multiInst"$(FULL_CURRENT_PATH)"wouldstartanewinstanceofNotepad++
openingthecurrentfile.Remembertoputquotesaroundpathsifitcancontainspaces.FortheNotepad++commandline
options,seeCommandLine.
Torunanexistingcommand:
SelectitfromtheRunmenubelowtheRun...option.Ifnocommandsaresaved,thelistwillbeempty.
Tosavethecommand:
SselectRun->Run...,enterthecommandandpressSave....Adialogwillpopupaskingforanameofthecommandandthe
defaultkeycombination.Oncesaved,thecommandwillbeavailablefromtheRunmenu.
Toeditordeleteanexistingcommand:
TheShortcutMapper(seeShortcutMapper)displaysallavailablecommandsinauniformway,soyoucanmodifyordelete
anyshortcutyoudefined,includingRuncommands.ThisprocedureisalsoavailablefromRun->Modifyshortcut/Delete
command.Asthenamesuggests,thisdoesnotextendtoeditingthecommandtextproper-youneedtoeditshortcuts.xml
todothat.
npp-user-manual
11Commands
TheWindowmenuallowsyoutoselectafilefromthelistofthefirst10opendocumentsintheactiveview(seealsoMulti
View).Selectingadocumentfromthelistwillactivateit.
YoucanopentheWindowsdialogbyselectingWindow->Windows....TheWindowsdialogallowsyoutomanageallthe
currentlyopendocumentsoftheactivateview.
TheWindowsdialogshowsalistofalltheopendocumentsintheactiveview.Youcanselectoneormoredocumentsfrom
thelist.LikeanyWindowslistcontrol,selectmultiplebydraggingduringclickingwithyourmouse,orbypressingCtrlor
Shiftwhenselectingbyclicking.OrusethearrowkeysonyourkeyboardoptionallywiththeCtrlorShiftkeydepressed(if
youdoso,usethespacebarkeytoselect).
SelectingoneallowsyoutoactivateitbyclickingontheActivatebutton.Thiswillclosethedialog.
SelectingoneormoreallowsyoutoclickontheSavebutton,thiswillperformtheSaveoperationifpossibleonallselected
documents(ifaSaveAs..operationisneeded,nothingwillhappen(seeFileManagement,OpeningandSaving)).
SelectingoneormorealsoallowsyoutoclosethosedocumentsbyclickingonCloseWindow(s).Ifadocumentcontains
anychanges,youwillbeaskedifyouwanttosavethem.
Tosortthedocumentsusingthedialog,firstsortthelistbyselectingoneofthecolumntitlesinthetop(selectingtwice
invertsthesortorder).Afterdoingso,selectSortTabstosortthem,thedocumentswillberearrangedintheview.
ClickOKtoclosethedialog.
npp-user-manual
12WindowsDialog
ThemainNotepad++viewconsistsofafewGUIelements.Thesesectionselaborateabitonthem.Theirnameswill
displayasatooltipasthemousehoversoverthecorrespondingclickableareasonthebigpicture:
npp-user-manual
13GUIElements
Forswitchingbetweendocumentstheforemostmethodisbyusingthetabbar.However,youcanalsousethekeyboardor
mousetodoso.Bydefault,youcanswitchtothenextdocumentbydepressingtheCtrlkeyandthenpressingTaboncefor
eachnextdocument.Pressingshiftaswellwillselectthepreviousdocument.Tousethemouse,depresstherightmouse
buttonandusethescrollwheel.Scrollingupwillselectthepreviousdocument,scrollingdownthenext.Theorderofthe
documentsisderivedfromthetabbar.SeeTabBarorWindowsDialogforinformationonhowtochangeit.
Documentswillbydefaultbecyclicallyselected,meaningthatifyouselectthedocumentpastthelastone,thefirstwillbe
selected.Iftwoviewsarevisible,thefirstdocumentoftheotherviewwillbeselected.
Selectingthedocumentprevioustothefirstdocumentwillselectthelastdocument(iftwoviewsarevisiblethatwillbethe
lastdocumentoftheotherview).
npp-user-manual
14SwitchingbetweenDocuments
Notepad++candistinguishbetweendifferentlanguagessourcecodecanbewrittenin.Thisisusefultoallowcertain
modificationsandvisualaidstobeappliedspecificallydesignedforthatlanguage.Forexample,alanguagecould
distinguishcertainkeywordsthathavetobedifferentlyinterpreted,andassuchitcanbeusefultodistinguishthese
keywordsusinganothercolororfont.Thelanguagealsodeterminesthefoldingbehavior(seeFolding)andhowtohandle
comments(seeCommenting).
Notepad++offersalotoflanguagesthatcanbeselected,andhasafewmethodstoaddyourownaswillbediscussed.By
defaultNotepad++willtrytoguessthelanguageofadocumentbytheextensionofthefilename(ifitisafile)orthedefault
settingifitisanewdocument(seePreferences).Toselectanotherlanguage,simplyselectitfromtheLanguagemenu.
Thelanguageofthecurrentlyactivedocumentisvisibleinthestatusbarinthefirstsection(seeStatusBar).Bydefaulta
languagecanhavemultiplekeywords,dividedincertaincategories.Italsodeterminesthesymbolsusedforcommentsand
whatextensionsareassociatedwithitbydefault.Youcansupplementthekeywordsandthelistofextensionsusingthe
StylerConfigurator,italsoallowsyoutochangethecolorsusedtoprintthetext.
Ifyouliketodefineyourownlanguage,youcandosobytwomeans.Themostsimpleandstraightforwardmethodisto
makeuserofaUserDefinedLanguage(seeUserDefinedLanguages),butyoucanalsocreateyourownexternallexer
(seeExternalLexers).Thisismoreflexiblebutalsoalotmoredifficulttomake.
npp-user-manual
15Languages
ControlmanytheaspectsofNotepad++.Theyaredividedinthreemaingroups:Preferences,StylerConfiguratorand
ShortcutMapper.
TheShortcutMapperisalistofkeyboardshortcutstoeverythingthatcanhaveoneinNotepad++.StylerConfigurator
allowschangingthevisualappearanceofanythingthathasacolourorafont.ThePreferencesdialogmanageseverything
else.WhiletherearevariousaspectsinNotepad++thatarenotconfigurable,youmaynotevennoticethem.
npp-user-manual
16Settings
Notepad++isveryextensibleusingsocalledplugins.PluginsaresmallorbigadditionstoNotepad++toenhanceits
functionality.Notepad++comesbundledwithafewplugins(whenusingtheinstaller,youcanchoosewhichonestoadd),
butyoucanalwaysaddyourownorremovesome.ThepluginsarelocatedinthePluginsdirectoryinthemainNotepad++
installationdirectory.TheyareDLLfilesandsimplyremovingoraddingthemisenough.
WhenNotepad++starts,itlooksintoitsPluginsconfigurationfolderandloadswhateverdllitfinds.Later,youcanadd
pluginsusingtheSettings->Import->Importpluginsmenu.BecarefultomakesureyourversionofNotepad++isup-to-
dateenoughfornewpluginsandthatthepluginiscompatiblewithNotepad++(someveryoldpluginswillnotworkwith
newerversionsofNotepad++,itisuptothedeveloperoftheplugintoaddsupportornot).
Currently,Notepad++canbefoundinan(older)ANSIversionandthenewerUnicodeversion.Thepluginhastomatchthis
version,otherwiseitwillnotwork(Notepad++willwarnyouaboutthis).Pluginscanbefoundanywhereontheinternet,but
alargecanbefoundintheNotepad++PluginsprojectonSourceForge.net:http://sourceforge.net/projects/npp-plugins/.
Thereisevenaplugin,calledPluginManager,whichworksouttheinstallationdetailsandversionmanagementforyou.
Ifapluginmisbehaves,Notepad++willgooutofitswaytopreventthefailurefrompropagatingsoastoavoidanylossof
data.Insuchacase,youwillbepresentedwithinformationaboutthepluginreportingaproblem.Makingthisinformation
availableonthePluginDevelopmentforumwillhelpremovingthecauseoftheproblemassoonaspossible.
npp-user-manual
17Plugins
Notepad++.exe[-multiInst][-noPlugin][-ro][-nosession][-notabbar][-n##][-l$$$][FILES]Notepad++supportsafew
commandlineparameterstocontrolitsstartup.Thefollowingoptionsaresupported(theyarecasesensitive):
-nlinenumberLinenumbertogotoforeachfileopened.-cStarteditinginColumnmode.--helpDisplaysthislist,i.e.allthe
commandlineswitches-loadingTimeDisplaystheloadingtimeofallfilesNotepad++isstartedwith.Theresultisdisplayed
inamessagebox,witha0.01secondresolution.-multiInstallowNotepad++tostartmorethanoneinstance.Bydefault,if
Notepad++isalreadystartedfileswillbeopenedinthatinstance,butthisoptionwillstartanewone.-noPluginDonotload
anyplugins.Ifyoususpectadefunctpluginoryoujustdonotwishtoloadthem,addthisoption.-roAnyfilenowopened
willbeopenedinReadonlymode.-nosessionDonotloadtheprevioussessionifNotepad++isstarted.Donotsavethe
sessiononexiteither.-notabbarHidetheTabBar,evenifthesettingssayotherwise.-systemtrayStartNotepad++
minimisedinthesystemtray,akanotificationarea-xlinenumberSpecifythehorizontalposition(inpixels)atwhich
Notepad++mainwindowistoopen.-ylinenumberSpecifytheverticalposition(inpixels)atwhichNotepad++mainwindow
istoopen.-llanguageshortnameLanguagetosetforeachfileopened.$$$isashortidentifierstring,ofwhichthe
followingareallowed:
normal,php,c,cpp,cs,objc,d,java,rc,html,xml,makefile,pascal,batch,ini,nfo,asp,sql,vb,javascript,css,perl,python,
lua,tex,cobol,fortran,bash,actionscript,nsis,tcl,lisp,scheme,asm,diff,props,postscript,ruby,smalltalk,vhdl,kix,autoit,
Gui4Cli,powershell,caml,ada,verilog,matlab,haskell,inno,cmake,yaml,r,jspFilesAnythingelsewillbeinterpretedasa
filename.Alwaysquoteyourfilenametoallowthepathtocontainspaces,otherwiseNotepad++willsplitthesinglepath
intomultiplepathsateachspace.
Theorderoftheoptionsisnotimportant.
Forcompatibility,Notepad++willfirsttrytoidentifytheentirecommandlineasafilename,evenifitisunquoted.Itis
howevernotrecommendedtodothis,alwaysquotethefilename.
npp-user-manual
18CommandLine
ThestartupbehaviorofNotepad++canbeadjustedwithafew(0sized)controlfiles.Theirabsenceorpresencewillcontrol
howNotepad++acts:
doLocalConf.xmlIfpresent,Notepad++willusetheinstallationdirectoryforallconfigurations.Ifabsent,%APPDATA%is
usedinstead.asNotepad.xmlIfpresent,Notepad++willactasWindowsNotepad,meaningitwilllaunchinmultiple
instances,hidesthetabbarandwillnotloadtheprevioussession.
npp-user-manual
19ControlFiles
BydefaulttheNotepad++installercomeswithaShellextension.ThisisnotreallypartoftheNotepad++programbutvery
useful.Ifyouchoosetoinstallit,thenanyfileyourightclickonwillshowanentrynamed“EditwithNotepad++”withthe
Notepad++icon.
Pleasenotethattoinstallorremovetheextension,itsometimesisrequiredtorestarttheExplorerprocess.Forthisyou
canreboot,logoutandlogbackinorusethetaskmanagertokillexplorer(WindowsNTandup)andrestartitagain.You
candothisbyhittingCtrl+Alt+Shift+Del.
IftheShellextensionisalreadyinstalled,theNotepad++installercannotupdateoroverwriteit,youfirsthavetouninstallit
andrestartExplorer.
Ifyouissuetheinstallcommandforthedll,whichisregsvr32/iNppShell_01.dll,adialogboxwillpopupfromwhichvarious
detailsofthebehaviouroftheextensioncanbetweaked.Thetrailingnumberwillincreaseasversionsgo.
npp-user-manual
20ShellExtension
Notepad++isanactivelymaintainedpieceofsoftware,andnewversionscomefast.Therearebasicallythreewaystokeep
abreastofchanges:
EnablingtheAutoUpdatefeature.Whenanewversionisreleased,andaftersomedelay-15days,youwillbenotifiedthat
anewversionisavailable,andpresentedwiththeoptionofinstallingthatnewerversion.Usingthe?->UpdateNotepad++
command.Thiswillcheckwhetherthereisanewversionandwhetherthesafetydelayisover.Ifso,youarepresentedwith
theopportunitytodownloadandinstallthenewerversion.Goingtothemainwebsiteanddownloadingthelatestinstalleror
zippedarchive.Thesafetydelayisprovidedsothat,incaseacriticalbugisspottedonanewrelease,acorrectiverelease
isdonequicklyenough,preventingbadbugstobecomewidespread.
npp-user-manual
21Upgrading
IfyouwantmoreinformationorhelpforNotepad++,orwanttosubmitsomefeedback,thesearesomepossibilities.
npp-user-manual
22FurtherHelp