

run ( 'compiler.exe "%s"' % newFilename, editor ) new () # Run a command on the file, and output results to the new file console. write ( "Saved as %s\n" % newFilename ) # Create a new document notepad. saveAs ( newFilename ) # Write to the console window console. getCurrentFilename () + ".changed" notepad. appendText ( "Changed codes\r\n" ) # Save the file newFilename = notepad. rereplace ( r"^()-\1", r"CODE: \1" ) # Call a Scintilla function editor. replace ( "old", "new" ) # Regular expressions search and replace editor. Full documentation for all the objects and methods.Start external programs and pipe the output direct to a Notepad++ document, or filter it, or simply to the console window.Full regular expression support for search and replace - script Python regular expression replaces.Process Notepad++ and Scintilla events, direct from a Python script.Assign menu items, shortcuts and toolbar icons to scripts.


Uncheck the “use default value” and choose “replace by space”. Scroll down in the “Tab Settings” list to “yaml”.

Go to Settings > Preferences and choose Tab Settings. N++ lets you make it so that when you hit TAB, it’ll insert the number of spaces you choose. But you probably don’t want to turn off the tab character globally. Make N++ use spaces instead of tabs - tabs are going to break YAML parsing. Make N++ display whitespace - under View > Show Symbol, turn on “Show White Space and TAB” A few things that helped make it easier for me to edit YAML with Notepad++:
