![]() I'm not after donations towards my coffee, but, my sister's a doctor, and is trying to build a hospital in Ghana. So, I do this for fun - Notepad++ is a great editor, but I missed not being able to script things properly, so I put this together. Is just as valid as a full blown object oriented magic system that turns Notepad++ into a coffee-making spreadsheet application. Python's a great choice for a scripting language - it's very easy to learn, very easy to read and write,Īnd can be object oriented (in fact, it has an excellent model), but doesn't need to be. Python is so easy to learn, you'll be writing scripts that save you hours in no time.Very quick and easy to create a new script, and add it to the menu.Interoperable from other plugins - call Python function from your own plugin.Full access to all of Scintilla features, and access to respond to events.It's lightweight, a 2MB download, it doesn't start up until it's needed (which normally takes about 0.2 seconds), and it doesn't start anything extra (like webservers.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.Full programmatic access to all of Scintilla features.Full programmatic access to Notepad++ features and menus.Python Script for Notepad++ The scripting plugin ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |