Scripts for AkelPad text editor with Scripts plugin.
Also see Scripts collection forum thread.
License for all scripts: BSD (like for AkelPad itself).
Tests part of jsBeautifier.js (not required for regular usage)
Helper functions for user32::SetTimer()
Adds checksum to Adblock Plus subscription
Encrypt/decrypt text using AES-256
[see crypt.js and cryptExt.js]
Align selected code with spaces to user defined string
Automatically saves current session after selection or scroll changes
Tries find file version and copy current file to the same directory:
file.js -> file-%version%.js
file.user.js -> file-%version%.user.js
Close tabs to the left or right (temporary check “Switch tabs: right-left” option)
Close unsaved tabs (all or only empty)
Context menu example:
"CLOSE"
{
"Other" Command(4320)
-"To the left" Call("Scripts::Main", 1, "closeLeftOrRightTabs.js", "-left")
-"To the right" Call("Scripts::Main", 1, "closeLeftOrRightTabs.js")
SEPARATOR
-"Empty unsaved" Call("Scripts::Main", 1, "closeUnsavedTabs.js", "-onlyEmpty=true -askToSave=false -closeCurrent=true")
-"All unsaved" Call("Scripts::Main", 1, "closeUnsavedTabs.js", "-onlyEmpty=false -askToSave=true -closeCurrent=true -stopOnCancel=false")
SEPARATOR
"All" Command(4319)
"All unchanged" Command(4321)
}
Convert color between “#fee” and “rgb(255, 238, 238)” formats
- Encode/decode HTML entities (& <=> &)
- Convert JavaScript escape sequences like "\u00a9" or "\xa9" (“©” symbol)
- Escape/unescape special RegExp symbols
- Escape/unescape special strings symbols
- Encode/decode Uniform Resource Identifiers (URIs)
- Hexadecimal escape/unescape
- Base64 encode/decode
- Convert charset
Converts JavaScript escape sequences like "\u00a9" or "\xa9" (“©” symbol)
[see converter.js]
Encode/decode HTML entities (& <=> &)
[see converter.js]
Copy path to file in configurable format
Encrypt/decrypt text using AES-256 or/and Blowfish
[see cryptExt.js]
Encrypt/decrypt text using AES-256/Blowfish/Twofish/Serpent
Decode HTML entities (& => &)
[see convertHTML.js and converter.js]
Encode HTML entities (& => &)
[see convertHTML.js and converter.js]
+ executeScript.vbs
Execute selected or all code
Force clone tab (even if "Single open file" is turned on)
Close current tab and remove information about it from recent files
Just like full screen mode, but preserve window size and position
Tries to extract links from any text
Go to longest line below or above current
Allow set extension manually for Coder plugin with basic autodetection
Insert current date
Script like built-in Calculator.js
Simplify tags insertion
JavaScript unpacker and beautifier
Also see Include/jsBeautifier_tests.js to run internal tests using -test
argument
Convert measures (internal) and currency (used cached data from exchange-rates.org, fxexchangerate.com and bitcoincharts.com)
Move or/and align AkelPad's main window
+ newFileTemplate-test.js
Create new file from template
Example for open file in other application
Tries to open file with relative path (will be used system association to open binary files).
Supports Mozilla's chrome.manifest files.
Fix some issues in Russian punctuation
Replace diacritic letters with “simple” latin characters
Restart AkelPad
Run script from AkelFiles\Plugs\Scripts\ directory with arguments
Temporary check “save file time” option and save current document
+ scriptToBookmarklet_w2k.js
Convert JavaScript code to one line bookmarklet (javascript: ...).
Switch between tabs in order of them usage (temporary check “Switch tabs: next-previous” option)
Switch between tabs in order of them arrangement (temporary check “Switch tabs: right-left” option)
Switch between tabs using alternative way (temporary check “Switch tabs: right-left” or “Switch tabs: next-previous” option)
Convert tabulation to space, modified version of TabsToSpaces.js
Provide some statistic for English and Russian texts
Tile current tab with next selected: select first tab, call script and then select second tab
Adds/removes comments
Toggle multiline toolbar from ToolBar plugin (convert BREAK
<-> #BREAK
)
Reopen file and preserve undo/redo buffer (just replace all text, if it was changed)
Undo/redo all changes (or undo/redo to saved state)
Convert Unix time
Compare contents of current and next selected tab using WinMerge or any other compare tool