Free Search Engine Submission

Free Download, Application, Software, Ebook, Game, Robot, Tutorial Guide. ALL FREE.

Powered by Blogger.

Python Script for Notepad++

Posted by Unknown Wednesday, November 11, 2015

Python Script for Notepad++
The scripting plugin


*Full programmatic access to Notepad++ features and menus
*Full programmatic access to all of Scintilla features
*Call other plugin menu items
*Assign menu items, shortcuts and toolbar icons to scripts
*Process Notepad++ and Scintilla events, direct from a Python script
*Python console built-in
*Full regular expression support for search and replace - script Python regular expression replaces
*Start external programs and pipe the output direct to a Notepad++ document, or filter it, or simply to the console window
*Full documentation for all the objects and methods.

Here's a sample...

# Simple search / replace
editor.replace("old", "new")

# Regular expressions search and replace
editor.rereplace(r"^([A-Z]{3,5})--\1", r"CODE: \1")

# Call a Scintilla function
editor.appendText("Changed codes\r\n");

# Save the file
newFilename = notepad.getCurrentFilename() + ".changed"
notepad.saveAs(newFilename);

# Write to the console window
console.write("Saved as %s\n" % newFilename)
# Create a new document
notepad.new()
# Run a command on the file, and output results to the new file
console.run('compiler.exe "%s"' % newFilename, editor)
So, why another scripting plugin...
It uses python.
See reason 1.
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... :)
Full access to all of Scintilla features, and access to respond to events
Did I mention it uses Python?
Interoperable from other plugins - call Python function from your own plugin
Very quick and easy to create a new script, and add it to the menu
Python is so easy to learn, you'll be writing scripts that save you hours in no time
Python's a great choice for a scripting language - it's very easy to learn, very easy to read and write, and can be object oriented (in fact, it has an excellent model), but doesn't need to be. A script that looks like
notepad.open("c:\autoexec.bat")
is just as valid as a full blown object oriented magic system that turns Notepad++ into a coffee-making spreadsheet application.
Free Download Software Python Script for Notepad++
DOWNLOAD NOW!


Post a Comment